Skip to content

Commit 3a60d43

Browse files
authored
Optimizing Build and Publish
1 parent f7dfa3d commit 3a60d43

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,7 @@ on:
55
types: [created]
66

77
jobs:
8-
validate:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
13-
with:
14-
node-version: 16
15-
- run: |
16-
npm i -g yarn
17-
yarn install
18-
yarn tsc
19-
20-
publish-npm:
21-
needs: validate
8+
validate-and-publish:
229
runs-on: ubuntu-latest
2310
steps:
2411
- uses: actions/checkout@v3
@@ -27,9 +14,9 @@ jobs:
2714
node-version: 16
2815
registry-url: https://registry.npmjs.org/
2916
- run: |
17+
npm i -g yarn
3018
yarn install
3119
yarn tsc
3220
yarn build
33-
npm publish
3421
env:
3522
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)