Skip to content

chore: simplify release commands #4

chore: simplify release commands

chore: simplify release commands #4

Workflow file for this run

name: Release
on:
push:
branches:
- "main"
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Set up repo
uses: ./.github/actions/setup
- name: Validate current commit (last commit) with commitlint
run: pnpm run commitlint -- --from HEAD~1 --to HEAD --verbose
- name: Release
run: npx semantic-release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}