Skip to content

fix workflow YAML: avoid ! operator in unquoted if condition #5

fix workflow YAML: avoid ! operator in unquoted if condition

fix workflow YAML: avoid ! operator in unquoted if condition #5

Workflow file for this run

name: Publish to npm
on:
push:
branches: [main]
# Skip if this is the auto-version-bump commit
concurrency:
group: publish
cancel-in-progress: true
jobs:
publish:
# Don't run on the version bump commit itself
if: contains(github.event.head_commit.message, '[skip ci]') == false
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Configure git
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: Bump patch version
run: npm version patch -m "chore: bump to %s [skip ci]"

Check failure on line 37 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 37
- name: Push version bump
run: git push
- name: Publish to npm
run: npm publish --provenance --access public