Skip to content

create-next-tag

create-next-tag #2

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