Skip to content

Commit

Permalink
ci: update create release
Browse files Browse the repository at this point in the history
  • Loading branch information
Mercy811 committed Nov 15, 2023
1 parent 892c7cc commit 7ebf73d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/feature-branch-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
- name: Pre-release version
if: ${{ env.DRY_RUN == false }}
run: |
GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} npm run deploy:version -- -y --no-private --conventional-prereleas --preid ${{ env.BRANCH_NAME}}
GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} npm run deploy:version -- -y --no-private --conventional-prereleas --preid ${{ env.BRANCH_NAME}} --create-release github
# Use 'from git' option if `lerna version` has already been run
- name: Publish Release to NPM
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,21 +93,21 @@ jobs:
- name: Create pre-release version
if: ${{ env.RELEASE_TYPE == 'prerelease'}}
run: |
GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} npm run deploy:version -- -y --conventional-prerelease
GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} npm run deploy:version -- -y --conventional-prerelease --create-release github
# https://www.npmjs.com/package/@lerna/version#--conventional-graduate
# 1.0.0-alpha.0 -> 1.0.1
- name: Create graduate version
if: ${{ env.RELEASE_TYPE == 'graduate'}}
run: |
GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} npm run deploy:version -- -y --conventional-graduate
GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} npm run deploy:version -- -y --conventional-graduate --create-release github
# Use 'release' for the usual deployment
# NOTE: You probably want this
- name: Create release version
if: ${{ env.RELEASE_TYPE == 'release'}}
run: |
GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} npm run deploy:version -- -y
GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} npm run deploy:version -- -y --create-release github
# Use 'from git' option if `lerna version` has already been run
- name: Publish Release to NPM
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-v2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,21 +92,21 @@ jobs:
- name: Create pre-release version
if: ${{ env.RELEASE_TYPE == 'prerelease'}}
run: |
GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} npm run deploy:version -- -y --no-private --conventional-prerelease
GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} npm run deploy:version -- -y --no-private --conventional-prerelease --create-release github
# https://www.npmjs.com/package/@lerna/version#--conventional-graduate
# 1.0.0-alpha.0 -> 1.0.1
- name: Create graduate version
if: ${{ env.RELEASE_TYPE == 'graduate'}}
run: |
GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} npm run deploy:version -- -y --no-private --conventional-graduate
GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} npm run deploy:version -- -y --no-private --conventional-graduate --create-release github
# Use 'release' for the usual deployment
# NOTE: You probably want this
- name: Create release version
if: ${{ env.RELEASE_TYPE == 'release'}}
run: |
GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} npm run deploy:version -- -y --no-private
GH_TOKEN=${{ secrets.GH_PUBLISH_TOKEN }} npm run deploy:version -- -y --no-private --create-release github
# Use 'from git' option if `lerna version` has already been run
- name: Publish Release to NPM
Expand Down
1 change: 0 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"version": {
"allowBranch": "main",
"conventionalCommits": true,
"createRelease": "github",
"message": "chore(release): publish",
"preid": "beta"
}
Expand Down

0 comments on commit 7ebf73d

Please sign in to comment.