We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7b177b9 commit d5b8971Copy full SHA for d5b8971
2 files changed
.github/workflows/publish-npm.yml
@@ -0,0 +1,28 @@
1
+name: Publish to NPM
2
+
3
+on:
4
+ release:
5
+ types: [created]
6
7
+jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
13
+ - name: Setup Node.js
14
+ uses: actions/setup-node@v3
15
+ with:
16
+ node-version: '20.x'
17
+ registry-url: 'https://registry.npmjs.org'
18
19
+ - name: Install dependencies
20
+ run: npm ci
21
22
+ - name: Build
23
+ run: npm run build
24
25
+ - name: Publish to NPM
26
+ run: npm publish
27
+ env:
28
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
package.json
@@ -63,8 +63,5 @@
63
},
64
"engines": {
65
"node": ">=14.0.0"
66
- },
67
- "publishConfig": {
68
- "registry": "https://npm.pkg.github.com/"
69
}
70
0 commit comments