create-next-tag #13
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
name: create-next-tag | |
on: | |
workflow_dispatch: | |
jobs: | |
create-tag: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
# this is needed if you want the tag push to trigger another workflow | |
# create a personal token and set a secret with name GH_PERSONAL_TOKEN | |
# https://github.com/orgs/community/discussions/27028 | |
token: ${{ secrets.GH_PERSONAL_TOKEN }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
- name: Create tag and push to repo | |
run: | | |
corepack enable | |
git config --global user.email "[email protected]" | |
git config --global user.name "Flávio Stutz" | |
pnpm dlx [email protected] tag-push |