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 66ee46b commit 4a0f22cCopy full SHA for 4a0f22c
.github/workflows/publish.yml
@@ -0,0 +1,27 @@
1
+name: Publish the NPM package
2
+
3
+on:
4
+ release:
5
+ types: [published]
6
7
+jobs:
8
+ publish:
9
+ runs-on: ubuntu-latest
10
+ name: Publish
11
+ steps:
12
+ - name: Checkout
13
+ uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
14
15
+ - uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
16
+ with:
17
+ node-version-file: .nvmrc
18
+ always-auth: true
19
+ registry-url: 'https://registry.npmjs.org'
20
21
+ - name: Install dependencies
22
+ run: npm ci
23
24
+ - name: Publish
25
+ run: npm publish --access public
26
+ env:
27
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments