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 d89d593 commit 0034ab0Copy full SHA for 0034ab0
.github/workflows/publish-to-npm-on-tag.yml
@@ -0,0 +1,26 @@
1
+name: publish-on-tag
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
8
+jobs:
9
+ publish:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+ id-token: write
14
+ steps:
15
+ - name: Check out repository
16
+ uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
17
+ with:
18
+ fetch-depth: 2
19
+ - name: Publish
20
+ env:
21
+ NPM_TOKEN: ${{secrets.NPM_TOKEN}}
22
+ TAG_NAME: ${{github.ref_name}}
23
+ run: |
24
+ npm config set registry 'https://wombat-dressing-room.appspot.com/'
25
+ npm config set '//wombat-dressing-room.appspot.com/:_authToken' '${NPM_TOKEN}'
26
+ npm publish --provenance --access public
0 commit comments