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 3fa47b6 commit a3dbe31Copy full SHA for a3dbe31
.github/workflows/publish.yaml
@@ -0,0 +1,24 @@
1
+name: Publish to NPM
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - 'v*' # This will run the workflow when you push a tag with a version format, like v1.0.0
7
8
+jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - uses: volta-cli/action@v1
15
+ - run: npm ci --no-audit
16
+ - run: npm run lint --if-present
17
+ - run: npm test
18
+ - run: npm run build --if-present
19
+ env:
20
+ CI: true
21
+ - name: Publish to NPM
22
+ run: npm publish
23
24
+ NODE_AUTH_TOKEN: ${{secrets.NPM_AUTOMATION_TOKEN}}
0 commit comments