Skip to content

release

release #11

Workflow file for this run

name: release
on:
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: ./.github/actions/setup-node
- name: Code lint
run: npm run lint
- name: Git config
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Version bump
run: npx release-it --ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Version extract
run: node scripts/ci-version-extract.cjs
id: version
- name: Version tag
uses: jacobsvante/tag-major-minor-action@v0
with:
major: ${{ steps.version.outputs.major }}
minor: ${{ steps.version.outputs.minor }}
- name: Push
run: git push --follow-tags