chore: debug git tag push #5
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: release | |
on: | |
push: | |
branches: ["master"] | |
tags-ignore: ['**'] | |
jobs: | |
tests: | |
uses: ./.github/workflows/tests.yml | |
tag-release: | |
runs-on: ubuntu-latest | |
needs: [tests] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: ".nvmrc" | |
token: ${{ secrets.GH_TOKEN }} | |
# cache: "npm" # needs lockfile if enabled | |
- name: go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: 1.19 | |
- name: tag release | |
run: | | |
git config --local user.email "creadbot@github.com" | |
git config --local user.name "creadbot_github" | |
set -v | |
npm install | |
npx standard-version | |
git push origin master | |
git push --follow-tags origin master | |
env: | |
SSH_KEY: ${{ secrets.SSH_KEY }} | |