From 453e95f3ca7740088d1ae3af542aeeecf1b52a7c Mon Sep 17 00:00:00 2001 From: Lordfirespeed <28568841+Lordfirespeed@users.noreply.github.com> Date: Thu, 15 Aug 2024 14:01:56 +0100 Subject: [PATCH] tooling: replace janky post-fixup with `ci:version` script --- .github/workflows/release.yml | 9 +-------- package.json | 1 + 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 81120a35..2c9b12fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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!" diff --git a/package.json b/package.json index 20dc5c54..e6b0bca2 100644 --- a/package.json +++ b/package.json @@ -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",