Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- name: install
run: npm ci
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
- name: Test Build
run: |
npm ci
Expand All @@ -27,7 +27,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
- name: Build
run: |
npm ci
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
- name: Test
run: |
npm ci
Expand All @@ -35,7 +35,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Setup and build
run: |
Expand All @@ -45,13 +45,13 @@ jobs:

- name: Publish @next
run: npm publish --tag next
if: "github.event.release.prerelease"
if: github.event.release.prerelease == true
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

- name: Publish @latest
run: npm publish --tag latest
if: "!github.event.release.prerelease"
if: github.event.release.prerelease == false
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20
registry-url: https://registry.npmjs.org/

- name: Build docs (latest/next)
Expand All @@ -119,15 +119,15 @@ jobs:
VERSION: ${{ needs.setup.outputs.version }}

- name: Release to GitHub Pages (latest)
if: "!github.event.release.prerelease"
if: github.event.release.prerelease == false
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GH_AUTH_TOKEN }}
publish_dir: dist/docs
destination_dir: latest

- name: Release to GitHub Pages (next)
if: "github.event.release.prerelease"
if: github.event.release.prerelease == true
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GH_AUTH_TOKEN }}
Expand Down