Skip to content

refactor: checkout token #7

refactor: checkout token

refactor: checkout token #7

Workflow file for this run

name: Release
on:
push:
branches:
- trunk
- alpha
- 'hotfix/**'
- 'epic/**'
jobs:
release:
name: Build and Release
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Verify Node version
run: node --version
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Release
env:
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run semantic-release