Skip to content

Commit caf4921

Browse files
authored
Update build.yml
1 parent 87ca921 commit caf4921

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,18 @@ on:
1010
- master
1111
- 'release/**'
1212

13+
permissions:
14+
id-token: write
15+
contents: read
16+
1317
jobs:
1418
build:
1519
runs-on: ubuntu-latest
1620

1721
steps:
18-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v4
1923
- name: Set up Node.js
20-
uses: actions/setup-node@v1
24+
uses: actions/setup-node@v4
2125
with:
2226
node-version: 18
2327
registry-url: 'https://registry.npmjs.org'
@@ -31,8 +35,6 @@ jobs:
3135
- name: Deploy to NPM
3236
if: github.repository_owner == 'Authress' && github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name == 'push'
3337
run: npm publish --access public
34-
env:
35-
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
3638

3739
- name: After build
3840
if: github.repository_owner == 'Authress' && github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name == 'push'

0 commit comments

Comments
 (0)