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 90a9483 commit 414b343Copy full SHA for 414b343
.github/workflows/release.yml
@@ -0,0 +1,28 @@
1
+name: Release NPM Package
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main # Change this to your default branch
7
8
+jobs:
9
+ release:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - name: Check out the code
14
+ uses: actions/checkout@v3
15
16
+ - name: Install Node.js
17
+ uses: actions/setup-node@v4
18
+ with:
19
+ node-version: 20
20
+ registry-url: "https://registry.npmjs.org"
21
22
+ - name: Install dependencies
23
+ run: npm install
24
25
+ - name: Publish to npm
26
+ env:
27
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_SECRET }}
28
+ run: npm publish
0 commit comments