Skip to content

ci: simplify the condition for the commit message #20

ci: simplify the condition for the commit message

ci: simplify the condition for the commit message #20

Workflow file for this run

name: Publish Error Codes
on:
push:
branches: [main]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Pnpm
uses: pnpm/action-setup@v4
with:
package_json_file: package.json
run_install: false
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: package.json
- name: Release a new version
run: |
pnpm install
pnpm audit signatures
npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_TOKEN: ${{ secrets.GITHUB_TOKEN }}