feat: upgrade ClawFlow to v1.1.0 with create, register, dev-mode, and… #7
This file contains hidden or 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: Publish to npm | ||
|
Check failure on line 1 in .github/workflows/publish.yml
|
||
| 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 | ||