attempt adding ci skip #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 GitHub Actions / Build and Release QHotkeysInvalid workflow file
|
||
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 }} |