Skip to content

fix: update release configuration to include repository URL and refin… #10

fix: update release configuration to include repository URL and refin…

fix: update release configuration to include repository URL and refin… #10

Workflow file for this run

name: Release & Publish to NPM
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
release:
name: Semantic Release
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
token: ${{ secrets.RELEASE_TOKEN }}
fetch-depth: 0
- name: Install native build tools
run: sudo apt-get update && sudo apt-get install -y build-essential python3
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Semantic Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_AUTHOR_NAME: github-actions[bot]
GIT_AUTHOR_EMAIL: github-actions[bot]@users.noreply.github.com
GIT_COMMITTER_NAME: github-actions[bot]
GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com