Skip to content

Commit 5aa84e4

Browse files
committed
ci(publish): update publish script
1 parent 1a743c2 commit 5aa84e4

File tree

2 files changed

+4
-18
lines changed

2 files changed

+4
-18
lines changed

.github/workflows/npm-publish.yml

+3-17
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,7 @@ on:
55
types: [created]
66

77
jobs:
8-
build:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v2
12-
- uses: actions/setup-node@v1
13-
with:
14-
node-version: 12
15-
- name: yarn install, build, and test
16-
run: |
17-
yarn install
18-
yarn build
19-
yarn test
20-
env:
21-
CI: true
22-
238
publish-npm:
24-
needs: build
259
runs-on: ubuntu-latest
2610
steps:
2711
- uses: actions/checkout@v2
@@ -31,6 +15,8 @@ jobs:
3115
registry-url: https://registry.npmjs.org/
3216
- run: yarn
3317
- run: yarn build
34-
- run: npm publish
18+
- run: yarn test
19+
- run: yarn run publish
3520
env:
3621
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
22+
CI: true

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "installation",
3-
"version": "0.2.8",
3+
"version": "0.2.9",
44
"description": "An installation template tool",
55
"keywords": [
66
"project generator"

0 commit comments

Comments
 (0)