We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af06374 commit a5ad729Copy full SHA for a5ad729
.github/workflows/publish.yml
@@ -6,19 +6,24 @@ on:
6
7
jobs:
8
publish-npm:
9
+ name: Publish to npm
10
runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+ id-token: write
14
steps:
15
- uses: actions/checkout@v3
16
- uses: actions/setup-node@v3
17
with:
- node-version: 14
18
+ node-version: 18
19
registry-url: https://registry.npmjs.org/
20
cache: npm
21
+ - run: npm install -g npm@latest
22
- run: npm ci
23
- run: npm test
24
- run: npm version ${TAG_NAME} --git-tag-version=false
25
env:
26
TAG_NAME: ${{ github.event.release.tag_name }}
- - run: npm whoami; npm --ignore-scripts publish
27
+ - run: npm whoami; npm --ignore-scripts publish --provenance --access public
28
29
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
0 commit comments