Skip to content

Commit d9bd01b

Browse files
rotujasoniangreen
andauthored
Update workflows (#2410)
silence warnings about outdated actions e.g. https://github.com/ajv-validator/ajv/actions/runs/8490491525 Co-authored-by: Jason Ian Green <[email protected]>
1 parent 2917fb6 commit d9bd01b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/build.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
node-version: [16.x, 18.x, 20.x, 21.x]
1616

1717
steps:
18-
- uses: actions/checkout@v2
18+
- uses: actions/checkout@v4
1919
- name: use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v2
20+
uses: actions/setup-node@v4
2121
with:
2222
node-version: ${{ matrix.node-version }}
2323
- run: npm install
@@ -32,6 +32,6 @@ jobs:
3232
- run: npm run build
3333
- run: npm run test-ci
3434
- name: coveralls
35-
uses: coverallsapp/github-action@master
35+
uses: coverallsapp/github-action@v2
3636
with:
3737
github-token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ jobs:
88
publish-npm:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v2
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
1313
with:
1414
node-version: 18
1515
registry-url: https://registry.npmjs.org/
1616
- run: npm install
1717
- run: git submodule update --init
1818
- run: npm run test-ci
1919
- name: Publish beta version to npm
20-
if: "github.event.release.prerelease"
20+
if: ${{ github.event.release.prerelease }}
2121
run: npm publish --tag beta
2222
env:
2323
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2424
- name: Publish to npm
25-
if: "!github.event.release.prerelease"
25+
if: ${{ !github.event.release.prerelease }}
2626
run: npm publish
2727
env:
2828
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)