Skip to content

Commit

Permalink
Merge pull request #5 from elecdeer/fix/release_workflow
Browse files Browse the repository at this point in the history
chore: Update release script to use pnpm run build and changeset publish
  • Loading branch information
elecdeer authored Jul 15, 2024
2 parents f7c710c + 8609af4 commit 7f90971
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: pnpm -F storybook-addon-source-link run release
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
"private": true,
"name": "packages",
"scripts": {
"demo": "pnpm -F storybook-addon-source-link run build && pnpm -F demo run storybook"
"demo": "pnpm -F storybook-addon-source-link run build && pnpm -F demo run storybook",
"release": "pnpm -r run build && changeset publish"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
Expand Down
3 changes: 1 addition & 2 deletions packages/addon-source-link/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
"build": "tsup",
"test": "echo \"Error: no test specified\" && exit 1",
"lint": "biome check",
"type-check": "tsc --noEmit",
"release": "pnpm run build && changeset publish"
"type-check": "tsc --noEmit"
},
"dependencies": {
"@storybook/blocks": "^8.2.2",
Expand Down

0 comments on commit 7f90971

Please sign in to comment.