Skip to content

Commit

Permalink
test: changesets
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoKam committed May 2, 2024
1 parent 500761e commit d0d2943
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/changesets-auto-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- master

jobs:
replace-package-json-and-publish:
pre-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -38,10 +38,10 @@ jobs:
# version: node ./node_modules/@changesets/cli/bin.js version --snapshot prepublish
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: changesets update version
run: changeset version --snapshot prepublish
- name: Pre Publish
run: npm run pub:pre
run: |
npm run cv:pre
npm run pub:pre
- name: Dingtalk Notify
uses: zcong1993/actions-ding@master
if: steps.changesets.outputs.hasChangesets == 'true'
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"deploy": "npm run docs:build && npm run docs:deploy",
"c": "changeset",
"cv": "changeset && changeset version",
"cv:pre": "changeset version --snapshot prepublish",
"pub": "npm run test && changeset publish && git push",
"pub:only": "npm run test && changeset publish",
"pub:pre": "changeset publish --tag prepublish",
Expand Down

0 comments on commit d0d2943

Please sign in to comment.