Skip to content

publish

publish #11

Workflow file for this run

name: publish
on:
workflow_run:
branches:
- main
workflows: ['sonar']
types:
- completed
jobs:
publish:
name: publish to npm
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: setup node
uses: actions/setup-node@v4
with:
node-version: 22
- name: disable husky
run: npm pkg delete scripts.prepare
- name: install
run: yarn install
- name: build
run: yarn build
- name: package
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}