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 8ee48cc commit dfd1c35Copy full SHA for dfd1c35
.github/workflows/publish.yml
@@ -0,0 +1,30 @@
1
+name: Publish to npm
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
8
+jobs:
9
+ build-and-publish:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - name: Checkout repository
14
+ uses: actions/checkout@v3
15
16
+ - name: Set up Node.js
17
+ uses: actions/setup-node@v3
18
+ with:
19
+ node-version: '18'
20
21
+ - name: Install dependencies
22
+ run: npm install
23
24
+ - name: Build project
25
+ run: npm run build
26
27
+ - name: Publish to npm
28
+ env:
29
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
30
+ run: npm publish
0 commit comments