Skip to content

chore: use GH_TOKEN

chore: use GH_TOKEN #2

Workflow file for this run

name: Release
on:
push:
branches: [master, next]
jobs:
semantic-release:
name: Bump version and release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Release
uses: cycjimmy/semantic-release-action@v4
with:
branches: |
[
'master',
{ name: 'next', prerelease: true }
]
extra_plugins: |
@semantic-release/git
@semantic-release/git
semantic-release-github-milestones
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}