bump 0.9.24: display name update, tolerate npm republish on retry #44
Workflow file for this run
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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| permissions: | |
| contents: write | |
| id-token: write | |
| jobs: | |
| build-and-publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Switch to production dependencies | |
| run: npm run deps:prod && rm package-lock.json | |
| - name: Install dependencies | |
| run: npm install | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Build | |
| run: npm run build | |
| - name: Publish to npm | |
| run: npm publish --access public --provenance || echo "npm publish failed (version may already exist) — continuing" | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Publish to ClawHub (plugin + skill) | |
| run: | | |
| npx --yes clawhub@latest login --token "$CLAWHUB_TOKEN" --no-browser | |
| VERSION=$(node -p "require('./package.json').version") | |
| REPO="${{ github.repository }}" | |
| SHA="${{ github.sha }}" | |
| REF="${{ github.ref_name }}" | |
| npx clawhub@latest package publish . \ | |
| --family code-plugin \ | |
| --name moltyjacs \ | |
| --display-name "JACS Signing + HAI.AI Email & Trust" \ | |
| --version "$VERSION" \ | |
| --source-repo "$REPO" \ | |
| --source-commit "$SHA" \ | |
| --source-ref "$REF" | |
| npx clawhub@latest publish src/skills/moltyjacs --slug moltyjacs --version "$VERSION" | |
| env: | |
| CLAWHUB_TOKEN: ${{ secrets.CLAWHUB_TOKEN }} |