Skip to content

Commit

Permalink
Add simple public test case, cleanup build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
antitoxic committed Jul 8, 2023
1 parent a6da7f8 commit 9792acb
Show file tree
Hide file tree
Showing 8 changed files with 2,119 additions and 700 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
name: Build
on: workflow_dispatch
#on:
# push:
# branches: [ main ]
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -19,6 +18,6 @@ jobs:
npm run build
- name: Test out the action
uses: ./ # Uses an action in the root directory
id: actiontest
id: testprerendering
with:
website_root: 'sarafov'
website_root: 'test/example-app'
6 changes: 0 additions & 6 deletions .npmrc

This file was deleted.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.20.1
30 changes: 24 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
## TODO:

- tag v1
- Publish npm package 0.9

# `prerender-spa-ultra`

Available as:
Expand Down Expand Up @@ -78,7 +73,30 @@ them.

### `github action` usage

asdasd
Example job definition for prerendering your repository via a github action:

```yaml
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: npm
- name: Install
run: |
npm install
- name: Build
run: |
npm run build
- name: Prereder the freshly built app
uses: @antitoxic/prerender-spa-ultra@1
id: prerender
with:
website_root: 'path/to/your/app/dist'
max_concurrent_pages: 10
```

<a name="prerender-spa-ultra-cli"></a>

Expand Down
Loading

0 comments on commit 9792acb

Please sign in to comment.