-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(github-action): add automatic create tag workflow.
- Loading branch information
1 parent
7ea04c0
commit 507889e
Showing
1 changed file
with
37 additions
and
0 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,37 @@ | ||
name: Release new version | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
actor_email: | ||
description: "Email of the person triggering the workflow" | ||
required: false | ||
default: "[email protected]" | ||
|
||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20" | ||
|
||
- name: Config git | ||
run: | | ||
git config --global user.email "${{ github.event.inputs.actor_email }}" | ||
git config --global user.name "${{ github.actor }}" | ||
- name: Release new version | ||
run: npx --yes commit-and-tag-version -a | ||
|
||
- name: Push new version | ||
run: | | ||
git push --follow-tags origin main |