Skip to content

Commit b5508e5

Browse files
committed
Chore: Optimize release script
1 parent 2ec1cd7 commit b5508e5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,23 @@ jobs:
2727
registry-url: https://registry.npmjs.org
2828

2929
- name: Yarn
30-
run: yarn
30+
run: |
31+
yarn
3132
3233
- name: Lint
33-
run: yarn lint
34+
run: |
35+
yarn lint
3436
3537
- name: Build
3638
run: |
37-
yarn
38-
npm --no-git-tag-version version ${{ github.event.release.tag_name }}
39+
yarn version --no-git-tag-version --new-version ${{ github.event.release.tag_name }}
3940
yarn build
4041
4142
- name: Publish
4243
env:
4344
NODE_AUTH_TOKEN: ${{ secrets.AEX_NPM_TOKEN }}
4445
run: |
45-
cd dist
46-
npm publish
46+
yarn publish dist
4747
4848
- name: Sync
4949
run: |

0 commit comments

Comments
 (0)