Skip to content

Commit 662fd52

Browse files
committed
Update release process.
1 parent 337a6ea commit 662fd52

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
push:
55
tags: ['v*']
66

7+
permissions:
8+
id-token: write # Required for OIDC
9+
contents: read
10+
711
jobs:
812
build:
913
runs-on: ubuntu-latest
@@ -40,14 +44,16 @@ jobs:
4044
uses: actions/setup-node@v4
4145
with:
4246
node-version: '20'
47+
registry-url: 'https://registry.npmjs.org'
4348

4449
- name: Set tag
4550
id: tagName
4651
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
4752

53+
# Ensure npm 11.5.1 or later is installed
54+
- name: Update npm
55+
run: npm install -g npm@latest
56+
4857
- run: npm ci
4958
- run: npm run build
50-
51-
- uses: JS-DevTools/npm-publish@v3
52-
with:
53-
token: ${{ secrets.NPM_TOKEN }}
59+
- run: npm publish

0 commit comments

Comments
 (0)