We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62c9b41 commit 165747fCopy full SHA for 165747f
1 file changed
.github/workflows/release.yml
@@ -4,6 +4,10 @@ on:
4
release:
5
types: [published]
6
7
+permissions:
8
+ id-token: write # Required for OIDC
9
+ contents: read
10
+
11
jobs:
12
build:
13
runs-on: ubuntu-latest
@@ -16,8 +20,9 @@ jobs:
16
20
with:
17
21
node-version: '20.x'
18
22
registry-url: 'https://registry.npmjs.org'
23
+ - name: Update npm
24
+ run: npm install -g npm@latest
19
25
- run: npm ci
- - run: npm run build
- - run: npm publish --provenance --access public
- env:
- 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