Skip to content

Commit

Permalink
Fix publish script (#91)
Browse files Browse the repository at this point in the history
Changeset doesn't understand `&&`. 🙄
  • Loading branch information
johnnyomair authored Aug 6, 2024
1 parent 0796580 commit 18c9f94
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
echo >> .changeset/canary.md
echo fake change to always get a canary release >> .changeset/canary.md
yarn changeset version --snapshot canary
yarn build
yarn changeset publish --tag canary
yarn run build-and-publish --tag canary
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
id: changesets
uses: changesets/action@v1
with:
publish: yarn build && yarn changeset publish
publish: yarn run build-and-publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"lint:eslint": "eslint src/",
"lint:tsc": "tsc",
"build": "tsc",
"start": "tsc --watch"
"start": "tsc --watch",
"build-and-publish": "yarn build && yarn changeset publish"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 18c9f94

Please sign in to comment.