-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1eb55d5
commit 1a52b8d
Showing
2 changed files
with
15 additions
and
12 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 |
---|---|---|
@@ -1,15 +1,17 @@ | ||
name: NPM publish | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
versionType: | ||
type: choice | ||
description: Version Type | ||
required: true | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
pull_request: | ||
branches: [ master ] | ||
# workflow_dispatch: | ||
# inputs: | ||
# versionType: | ||
# type: choice | ||
# description: Version Type | ||
# required: true | ||
# options: | ||
# - patch | ||
# - minor | ||
# - major | ||
permissions: | ||
contents: write | ||
jobs: | ||
|
@@ -28,7 +30,7 @@ jobs: | |
- run: npm run build | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "y-infra" | ||
- run: npm run release -- --release-as ${{ github.event.inputs.versionType }} | ||
- run: npm run release -- --release-as patch | ||
- run: npm publish --dry-run | ||
- run: git push --follow-tags --dry-run | ||
env: | ||
|
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