Skip to content

Commit df7ff80

Browse files
authored
fix: pin the actions, remove npm publish token (#7)
* fix: pin the actions, remove npm publish token * fix: typos and spaces
1 parent 9704b91 commit df7ff80

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v4
10-
- uses: actions/setup-node@v3
9+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
10+
11+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
1112
with:
12-
node-version: '20.x'
13+
node-version: '24.x'
1314
registry-url: 'https://registry.npmjs.org'
15+
1416
- run: npm ci
17+
1518
- run: npm publish --access public
16-
if: ${{ !env.ACT }}
17-
env:
18-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_PUBLIC_PUBLISH }}
19+
if: ${{ !env.ACT }}

.github/workflows/pr.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,15 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout repository
13-
uses: actions/checkout@v2.1.0
13+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 #v4.2.2
1414
- name: Set up Node.js
15-
uses: actions/setup-node@v1
15+
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
1616
with:
17-
node-version: 16.17.0
18-
- run: npm install
19-
- run: npm run asbuild
17+
node-version: '24.x'
18+
- run: |
19+
npm --version
20+
npm install
21+
npm run asbuild
2022
# make sure example filter builds:
2123
- run: cd examples/auth && npm install && npm run asbuild
2224
- run: cd examples/addheader && npm install && npm run asbuild

0 commit comments

Comments
 (0)