We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f9d86c0 commit 17a800cCopy full SHA for 17a800c
1 file changed
.github/workflows/publishPackage.yml
@@ -0,0 +1,35 @@
1
+name: Publish to npm
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
8
+jobs:
9
+ publish:
10
+ name: Publish Package
11
+ runs-on: ubuntu-latest
12
13
+ steps:
14
+ - name: Checkout code
15
+ uses: actions/checkout@v4
16
17
+ - name: Set up Node.js
18
+ uses: actions/setup-node@v4
19
+ with:
20
+ node-version: '20'
21
+ registry-url: 'https://registry.npmjs.org/'
22
+ always-auth: true
23
24
+ - name: Install dependencies
25
+ run: npm install
26
27
+ - name: Confirm npm auth with whoami
28
+ run: npm whoami
29
+ env:
30
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31
32
+ - name: Publish to npm
33
+ run: npm publish --access public
34
35
0 commit comments