Skip to content

Commit 572bc79

Browse files
committed
ci(cd): update publish script
1 parent 76bb310 commit 572bc79

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/npm-publish.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,8 @@ jobs:
1616
- run: yarn
1717
- run: yarn build
1818
- run: yarn test
19-
- name: Get the version
20-
id: get_version
21-
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\/v/}
22-
- run: npm run publish ${{steps.get_version.outputs.VERSION}}
23-
- run: git push
19+
- run: npm whoami
20+
- run: npm run publish
2421
env:
2522
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
2623
CI: true

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"performance": "yarn test:generateTestSource && yarn test:performance",
2929
"build:docs": "ts-node scripts/typedoc.ts",
3030
"commit": "yarn git-cz",
31+
"version": "lerna version --amend --no-git-tag-version",
3132
"publish": "lerna publish --no-git-tag-version --force-publish --yes"
3233
},
3334
"repository": {

0 commit comments

Comments
 (0)