We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f361b7 commit 947d6e6Copy full SHA for 947d6e6
.github/workflows/release.yaml
@@ -5,15 +5,16 @@ on:
5
jobs:
6
ReleaseNPM:
7
runs-on: ubuntu-latest
8
+ environment:
9
+ name: npmjs
10
+ permissions:
11
+ id-token: write
12
+ contents: read
13
steps:
14
- name: Repo checkout
15
uses: actions/checkout@v6
16
- name: Set release version to package.json
17
run: jq --indent 4 '.version = "${{ github.ref_name }}"' < package.json > package.json~ && mv package.json~ package.json
- - name: NPM auth
- run: npm set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
- env:
- NODE_AUTH_TOKEN: "${{ secrets.NPMJS_SECRET }}"
18
- name: NPM release
19
run: npm publish
20
ReleasePyPI:
0 commit comments