-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish workflow: Bump versions automatically (#6607)
- Loading branch information
Showing
23 changed files
with
1,174 additions
and
1,601 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,17 @@ on: | |
type: choice | ||
description: Which NPM tag should be assigned? | ||
options: | ||
- dev | ||
- next | ||
- latest | ||
version: # see https://github.com/lerna/lerna/tree/main/libs/commands/version#semver-bump | ||
type: choice | ||
description: Semver keyword for version bump | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
- prerelease | ||
|
||
jobs: | ||
publish: | ||
|
@@ -23,7 +32,6 @@ jobs: | |
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
persist-credentials: false | ||
|
||
# https://github.com/pnpm/action-setup#use-cache-to-reduce-installation-time | ||
- name: Install Node.js | ||
|
@@ -52,6 +60,14 @@ jobs: | |
- name: Install | ||
run: pnpm i --no-frozen-lockfile --no-verify-store-integrity | ||
|
||
- name: Configure Git user | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
- name: Bump Versions | ||
run: 'npx lerna version ${{github.event.inputs.version}} --no-private --tag-version-prefix="" -m "chore: release %v" -y' | ||
|
||
- name: Build | ||
run: pnpm -r build | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.