Skip to content

Commit

Permalink
feat: Fixed typo in 'prepublish' script name and added pre-release st…
Browse files Browse the repository at this point in the history
…ep in release workflow to run 'npm run prepublish'
  • Loading branch information
danilowoz committed Mar 26, 2024
1 parent 192a0ca commit 2320af1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ jobs:
- name: Install dependencies
run: npm install --ignore-scripts

- name: Pre-release
run: npm run prepublish

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm release
npm publish
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"build:watch": "npm run build -- --watch",
"test": "echo \"Error: no test specified\" && exit 1",
"start": "run-p build:watch 'storybook --quiet'",
"prerelease": "zx scripts/prepublish-checks.js && npm run build",
"prepublish": "zx scripts/prepublish-checks.js && npm run build",
"eject-ts": "zx scripts/eject-typescript.js",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build"
Expand Down

0 comments on commit 2320af1

Please sign in to comment.