Skip to content

attempt adding ci skip #10

attempt adding ci skip

attempt adding ci skip #10

Workflow file for this run

name: Build and Release QHotkeys
# Every push to the main branch
on:
push:
branches: [ main ]
jobs:
publish:
name: Publish to npm
if: '!startsWith(github.event.head_commit.message, "[ci-skip]")'

Check failure on line 11 in .github/workflows/ci.yaml

View workflow run for this annotation

GitHub Actions / Build and Release QHotkeys

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yaml (Line: 11, Col: 9): Unexpected symbol: '"'. Located at position 47 within expression: !startsWith(github.event.head_commit.message, "[ci-skip]")
runs-on: ubuntu-latest
steps:
- name: Fetch project
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Publish to npm
if: contains(github.event.head_commit.message, '[publish]')
id: publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}