diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d96d5bb..1878c17 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,7 +39,9 @@ jobs: - uses: changesets/action@v1 id: changesets with: - version: npx changeset version && node ./scripts/sync-version.mjs + # Single command: the action whitespace-splits this input and spawns + # it as args (no shell), so chaining belongs in the package script. + version: npm run changeset:version publish: node ./scripts/release.mjs env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 28e122d..ba8f2d6 100644 --- a/package.json +++ b/package.json @@ -8,6 +8,7 @@ "format": "prettier --write .", "format:check": "prettier --check .", "changeset": "changeset", + "changeset:version": "changeset version && node ./scripts/sync-version.mjs", "build": "tsc -p tsconfig.build.json", "typecheck": "tsc", "test": "vitest run",