Skip to content

feat: upgrade ClawFlow to v1.1.0 with create, register, dev-mode, and… #7

feat: upgrade ClawFlow to v1.1.0 with create, register, dev-mode, and…

feat: upgrade ClawFlow to v1.1.0 with create, register, dev-mode, and… #7

Workflow file for this run

name: Publish to npm

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

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

(Line: 42, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.NPM_TOKEN != '', (Line: 50, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.NPM_TOKEN == ''
on:
push:
tags:
- 'v*'
workflow_dispatch:
permissions:
contents: read
id-token: write
concurrency:
group: publish-${{ github.ref }}
cancel-in-progress: false
jobs:
publish:
name: Publish package
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Run linter
run: npm run lint
- name: Publish to npm (using NPM_TOKEN)
if: secrets.NPM_TOKEN != ''
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "Publishing with NPM_TOKEN..."
npm publish --access public
- name: Publish to npm (OIDC / Trusted Publisher)
if: secrets.NPM_TOKEN == ''
run: |
echo "No NPM_TOKEN found. Trying Trusted Publisher via OIDC..."
npm publish --access public --provenance