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 e32db29 commit 77b86cdCopy full SHA for 77b86cd
.github/workflows/npm.yml
@@ -5,6 +5,9 @@ on:
5
- main
6
tags:
7
- "v*"
8
+permissions:
9
+ id-token: write # Required for OIDC NPMJS publishing
10
+ contents: read
11
12
jobs:
13
build:
@@ -50,9 +53,6 @@ jobs:
50
53
token: ${{ secrets.GITHUB_TOKEN }}
51
54
- name: NPM Publish
52
55
if: startsWith(github.ref, 'refs/tags/v')
- env:
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
56
run: |
57
npm --no-git-tag-version version "$(git describe --tags --abbrev=0)"
- npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
58
npm publish
0 commit comments