Skip to content

Commit b6919b8

Browse files
all: update release.yml
1 parent dd2c968 commit b6919b8

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

.github/workflows/release.yml

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
tags:
55
- '[0-9]+.[0-9]+.[0-9]+'
66

7+
permissions:
8+
id-token: write # Required for OIDC
9+
contents: read
10+
711
jobs:
812
release:
913
runs-on: ubuntu-latest
@@ -12,17 +16,14 @@ jobs:
1216
- uses: actions/checkout@v4
1317
- uses: actions/setup-node@v4
1418
with:
15-
node-version: '18'
16-
cache: 'yarn'
17-
registry-url: https://registry.npmjs.org/
18-
- name: Install dependencies
19-
run: yarn
20-
- name: Test
21-
run: yarn test
22-
- name: Lint
23-
run: yarn lint
24-
- run: npm publish --access public
25-
env:
26-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
19+
node-version: '20'
20+
registry-url: 'https://registry.npmjs.org'
21+
# Ensure npm 11.5.1 or later is installed
22+
- name: Update npm
23+
run: npm install -g npm@latest
24+
- run: npm ci
25+
- run: npm run lint:fail-on-warnings
26+
- run: npm publish
27+
2728
- name: Documentation
28-
run: yarn doc:deploy
29+
run: npm run doc:deploy

0 commit comments

Comments
 (0)