Skip to content

Commit

Permalink
tooling: replace janky post-fixup with ci:version script
Browse files Browse the repository at this point in the history
  • Loading branch information
Lordfirespeed committed Aug 15, 2024
1 parent f45b8f3 commit 453e95f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,12 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
version: "pnpm ci:version"
commit: "chore: version packages"
publish: pnpm exec changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- if: steps.changesets.outputs.published == 'false'
run: |
pnpm check:fix
pnpm install --no-frozen-lockfile
git add .
git commit --amend --no-edit
git push origin HEAD:changeset-release/main --force
- if: steps.changesets.outputs.published == 'true'
run: echo "(a) new version(s) was/were published!"
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"scripts": {
"prerelease": "pnpm lint && pnpm build && pnpm test",
"changeset": "changeset",
"ci:version": "pnpm exec changeset version && pnpm check:fix && pnpm install --no-frozen--lockfile",
"test:dev": "vitest --dir tests",
"test:coverage": "vitest run --dir tests --coverage --silent",
"test": "vitest run --dir tests",
Expand Down

0 comments on commit 453e95f

Please sign in to comment.