We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ba2d72b commit b734913Copy full SHA for b734913
.github/workflows/publish.yml
@@ -4,21 +4,25 @@ 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
14
permissions:
15
contents: read
16
id-token: write
17
steps:
- - uses: actions/checkout@v4
18
+ - uses: actions/checkout@v5
19
- uses: actions/setup-node@v4
20
with:
21
node-version: '20.x'
22
registry-url: 'https://registry.npmjs.org'
23
+ - name: Update npm
24
+ run: npm install -g npm@latest
25
- run: npm ci
- - run: npm run build
26
+ - run: npm run build --if-present
27
- run: npm test
- - run: npm publish --provenance --access public
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
28
+ - run: npm publish --provenance --access public
0 commit comments