Skip to content

Commit 21bb469

Browse files
authored
fix: run changesets publish via package script (#556)
## Summary - add a `release-packages` script that builds and then publishes - update `changesets/action` to call that script instead of passing `&&` in the `publish` input ## Why The release workflow on `main` is currently failing inside `changesets/action` because it tries to execute `yarn build && yarn release` as argv, and Yarn treats `&&` as an unexpected argument.
1 parent 0d89e76 commit 21bb469

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: changesets/action@v1
3333
with:
3434
version: yarn version-packages
35-
publish: yarn build && yarn release
35+
publish: yarn release-packages
3636
title: Version Packages
3737
commit: Version Packages
3838
env:

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"lint": "lerna run lint --stream",
2323
"lint:ci": "lerna run lint:ci --stream",
2424
"version-packages": "changeset version && yarn install",
25+
"release-packages": "yarn build && yarn release",
2526
"release": "changeset publish",
2627
"docs": "./docs.sh"
2728
},

0 commit comments

Comments
 (0)