Skip to content

Commit 724f0bd

Browse files
committed
Test publish again
1 parent 518f99c commit 724f0bd

File tree

1 file changed

+28
-27
lines changed

1 file changed

+28
-27
lines changed

.github/workflows/build.yml

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,37 @@ jobs:
1414
node-version: [10.x, 12.x]
1515

1616
steps:
17-
- name: checkout repo
18-
uses: actions/checkout@v2
19-
- name: Use Node.js ${{ matrix.node-version }}
20-
uses: actions/setup-node@v1
21-
with:
22-
node-version: ${{ matrix.node-version }}
23-
- run: yarn
24-
- run: yarn build
25-
- run: yarn lint
26-
- run: yarn test
27-
- run: bash <(curl -s https://codecov.io/bash)
17+
- name: checkout repo
18+
uses: actions/checkout@v2
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- run: yarn
24+
- run: yarn build
25+
- run: yarn lint
26+
- run: yarn test
27+
- run: bash <(curl -s https://codecov.io/bash)
2828

2929
publish:
3030
runs-on: ubuntu-latest
3131
needs: build
3232
if: github.ref == 'refs/heads/master'
3333
steps:
34-
- name: checkout repo
35-
uses: actions/checkout@v2
36-
- name: Set up Node.js
37-
uses: actions/setup-node@master
38-
with:
39-
node-version: 12
40-
- run: yarn
41-
- run: yarn build
42-
- name: Publish if version has been updated
43-
uses: pascalgn/npm-publish-action@1.2.0
44-
with:
45-
tag_name: "v%s"
46-
tag_message: "v%s"
47-
env:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
NPM_AUTH_TOKEN: ${{ secrets.QMBOT_NPM_TOKEN }}
34+
- name: checkout repo
35+
uses: actions/checkout@v2
36+
- name: Set up Node.js
37+
uses: actions/setup-node@master
38+
with:
39+
node-version: 12
40+
- run: yarn
41+
- run: yarn build
42+
- name: Publish if version has been updated
43+
uses: pascalgn/npm-publish-action@1.2.0
44+
with:
45+
tag_name: "v%s"
46+
tag_message: "v%s"
47+
commit_pattern: ".*"
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
NPM_AUTH_TOKEN: ${{ secrets.QMBOT_NPM_TOKEN }}

0 commit comments

Comments
 (0)