Skip to content

Commit

Permalink
ci: upgrade actions and add Node.js 20
Browse files Browse the repository at this point in the history
  • Loading branch information
Menci committed May 20, 2023
1 parent f9ba546 commit 541d7e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
runs-on: ubuntu-latest
name: NPM Publish
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 16
- name: Install dependencies
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Test
run: yarn test
- name: Publish
uses: JS-DevTools/npm-publish@v1
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
tag: ${{ endsWith(github.ref_name, 'next') && 'next' || 'latest' }}
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["14", "16", "18"]
node: ["14", "16", "18", "20"]
name: Test on Node.js ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
- name: Install dependencies
Expand Down

0 comments on commit 541d7e4

Please sign in to comment.