Skip to content

ci(publish): specify GITHUB_TOKEN in release step #3

ci(publish): specify GITHUB_TOKEN in release step

ci(publish): specify GITHUB_TOKEN in release step #3

Workflow file for this run

name: Release
on:
push:
branches: [main, dev]
jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: latest
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Release
run: pnpx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}