-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from yorickshan/fix/2911
Fix/2911
- Loading branch information
Showing
6 changed files
with
18,109 additions
and
20,001 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Create Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Semantic version (major | minor | patch | premajor | preminor | prepatch | prerelease)' | ||
default: 'patch' | ||
required: true | ||
|
||
jobs: | ||
version: | ||
name: Create version | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- name: Npm install | ||
run: npm ci | ||
- name: Configure git | ||
run: | | ||
git config user.name "CI" | ||
git config user.email "[email protected]" | ||
- name: Create release | ||
run: npm run release -- --preset eslint --release-as ${{ github.event.inputs.version }} | ||
- name: Print details | ||
run: | | ||
cat package.json | ||
cat CHANGELOG.md | ||
git tag | ||
- name: Push git version | ||
run: git push --follow-tags origin master |
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.