Skip to content

Commit bd0dfaf

Browse files
committed
ci(release): avoid shell quoting issues by using a release script
1 parent 6c38cfb commit bd0dfaf

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
with:
6969
version: pnpm run version
7070
# Use changeset publish to only publish packages that were actually bumped
71-
publish: ${{ (inputs.dry-run == true || inputs.publish-npm == false) && 'echo Skipping npm publish' || 'sh -c "pnpm build && pnpm changeset publish"' }}
71+
publish: ${{ (inputs.dry-run == true || inputs.publish-npm == false) && 'echo Skipping npm publish' || 'pnpm run release' }}
7272
createGithubReleases: ${{ inputs.create-release != false }}
7373
env:
7474
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"clean": "turbo clean",
2121
"changeset": "changeset",
2222
"version": "changeset version && pnpm codegen all",
23+
"release": "pnpm build && pnpm changeset publish",
2324
"publish:pypi": "cd packages/oxa-types-py && uv build && uv publish",
2425
"publish:crates": "cd packages/oxa-types-rs && cargo publish"
2526
},

0 commit comments

Comments
 (0)