Thanks to visit codestin.com Credit goes to github.com
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 c767cc6 commit 3648f19Copy full SHA for 3648f19
.github/workflows/npm-publish.yml
@@ -1,11 +1,26 @@
1
-name: publish
+name: npm-publish
2
on:
3
push:
4
branches:
5
- master
6
jobs:
7
- build:
+ npm-publish:
8
+ name: npm-publish
9
runs-on: ubuntu-latest
10
steps:
- - name: Publish to npm
11
- uses: pascalgn/[email protected]
+ - name: Checkout repository
12
+ uses: actions/checkout@master
13
+ - name: Set up Node.js
14
+ uses: actions/setup-node@master
15
+ with:
16
+ node-version: 12.0.0
17
+ - name: Publish if version has been updated
18
+ uses: pascalgn/npm-publish-action@06e0830ea83eea10ed4a62654eeaedafb8bf50fc
19
20
+ tag_name: "v%s"
21
+ tag_message: "v%s"
22
+ commit_pattern: "^Release (\\S+)"
23
+ workspace: "."
24
+ env:
25
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26
+ NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
0 commit comments