Skip to content

Commit

Permalink
prerelease workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
janthurau committed Aug 12, 2023
1 parent 9cb0b54 commit 2a59f7d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run publish
if: "!github.event.release.prerelease"
if: !contains(github.ref, '-rc.')
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: npm run publish:pre
if: "github.event.release.prerelease"
if: contains(github.ref, '-rc.')
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@
"build:watch": "npm run clean:packages && rollup -wc",
"clean:packages": "rm -Rf ./packages/*/dist",
"release:major": "lerna version major --force-publish",
"release:major:pre": "echo 'doesnt work yet'; exit 1; lerna version premajor --force-publish",
"release:major:pre": "lerna version premajor --force-publish --preid rc",
"release:minor": "lerna version minor --force-publish",
"release:minor:pre": "echo 'doesnt work yet'; exit 1; lerna version preminor --force-publish",
"release:minor:pre": "lerna version preminor --force-publish --preid rc",
"release:patch": "lerna version patch --force-publish",
"release:patch:pre": "echo 'doesnt work yet'; exit 1; lerna version prepatch --force-publish",
"release:pre": "echo 'doesnt work yet'; exit 1; lerna version prerelease --force-publish",
"release:patch:pre": "lerna version prepatch --force-publish --preid rc",
"release:pre": "echo 'doesnt work yet'; exit 1; lerna version prerelease --force-publish --preid rc",
"publish": "npm run build:packages && lerna exec --since --no-private -- npm publish --access public",
"publish:pre": "echo 'doesnt work yet'; exit 1; npm run build:packages && lerna exec --since --no-private -- npm publish --tag next --access public",
"publish:pre": "npm run build:packages && lerna exec --since --no-private -- npm publish --tag next --access public",
"reset": "npm run clean:packages && rm -Rf ./**/.cache && rm -Rf ./**/.temp && rm -Rf ./**/node_modules && rm -Rf ./package-lock.json && npm install",
"ncu": "ncu -i --deep && npm install"
},
Expand Down

0 comments on commit 2a59f7d

Please sign in to comment.