Skip to content

fix: use PAT

fix: use PAT #8

Workflow file for this run

name: Semantic Release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
# make sure it only run on main and ensure that it does not contain [skip ci] in the commit message
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, '[skip ci]')
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: npm install -g semantic-release @semantic-release/git @semantic-release/changelog @semantic-release/exec @semantic-release/npm
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_CI }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release