Skip to content

fix: use "semantic release" directly via "npx" #8

fix: use "semantic release" directly via "npx"

fix: use "semantic release" directly via "npx" #8

Workflow file for this run

name: Release
on:
workflow_dispatch:
push:
branches:
- "main"
jobs:
release:

Check failure on line 10 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
runs-on: ubuntu-latest
if: ${{ !contains(github.event.head_commit.message, 'chore(release)') }}
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
- name: Setup 7zip
run: |
sudo apt-get update
sudo apt-get install -y p7zip-full
- name: Install dependencies
run: npm install
- name: Fix auto-fixable eslint issues
run: npm run eslint -- --fix
- name: Update the ToC in the README.md
run: npx markdown-toc README.md -i
- name: Semantic Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}