Skip to content

Commit 165747f

Browse files
release action
1 parent 62c9b41 commit 165747f

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
id-token: write # Required for OIDC
9+
contents: read
10+
711
jobs:
812
build:
913
runs-on: ubuntu-latest
@@ -16,8 +20,9 @@ jobs:
1620
with:
1721
node-version: '20.x'
1822
registry-url: 'https://registry.npmjs.org'
23+
- name: Update npm
24+
run: npm install -g npm@latest
1925
- run: npm ci
20-
- run: npm run build
21-
- run: npm publish --provenance --access public
22-
env:
23-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
- run: npm run build --if-present
27+
- run: npm test
28+
- run: npm publish --provenance --access public

0 commit comments

Comments
 (0)