Skip to content

Commit 3648f19

Browse files
committed
fix publish script
Signed-off-by: shmck <[email protected]>
1 parent c767cc6 commit 3648f19

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

Diff for: .github/workflows/npm-publish.yml

+19-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
1-
name: publish
1+
name: npm-publish
22
on:
33
push:
44
branches:
55
- master
66
jobs:
7-
build:
7+
npm-publish:
8+
name: npm-publish
89
runs-on: ubuntu-latest
910
steps:
10-
- name: Publish to npm
11-
uses: pascalgn/[email protected]
11+
- 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+
with:
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

Comments
 (0)