Skip to content

Commit

Permalink
ci(github-action): add automatic create tag workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
just-pthai-it committed Aug 25, 2024
1 parent 7ea04c0 commit 507889e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
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

0 comments on commit 507889e

Please sign in to comment.