Skip to content

Commit

Permalink
chore: fixed exit prerelease mode
Browse files Browse the repository at this point in the history
  • Loading branch information
agliga committed Apr 29, 2024
1 parent aebbc01 commit d8b7a71
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,13 @@ jobs:
cache: npm
- name: Install dependencies
run: npm i
- name: Enter prerelease mode
if: ${{ github.ref != 'refs/heads/master' }}
run: npm run prerelease:start
- name: Exit prerelease mode
if: ${{ github.ref == 'refs/heads/master' }}
run: npm run prerelease:end
- name: Toggle prerelease mode
run: |
if [ ${{ github.ref }} == 'refs/heads/master' ]; then
npm run prerelease:end
else
npm run prerelease:start
fi
- name: Release
id: changesets
uses: changesets/action@v1
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"installMarkoV5": "npm i marko@5 @marko/compiler@5 --force",
"installMarkoV4": "npm remove @marko/compiler && npm i marko@4 --force",
"prepublishOnly": "node scripts/postpublish && node scripts/prepublish",
"version": " npm run importSVG && prettier . --write --log-level=warn && npm run build:storybook && npm run build:readme && git add -A src docs && changeset version && npm i --package-lock-only",
"version": "npm run importSVG && prettier . --write --log-level=warn && npm run build:storybook && npm run build:readme && git add -A src docs && changeset version && npm i --package-lock-only",
"postpublish": "node scripts/postpublish",
"start": "storybook dev -p 6006",
"start:prod": "NODE_ENV=production npm start",
Expand Down

0 comments on commit d8b7a71

Please sign in to comment.