Skip to content

Soul-driven AI agent with permission-hardened tools, token budgets, and multi-channel access. Runs 24/7 from CLI, Telegram or More.

release: npm before the GitHub release goes public

Salman Qureshi10512094a3b7
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index ccc465c8..d2bf997c 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -192,14 +192,16 @@ jobs:
done
- run: npm ci --no-audit --no-fund
- run: npm run build
- - name: Make the release public
- env:
- GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: gh release edit "v${{ needs.server.outputs.version }}" --draft=false --latest
+ # npm first: its token is the credential most likely to have expired,
+ # and a failure here still leaves nothing public.
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access public --provenance
+ - name: Make the release public
+ env:
+ GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: gh release edit "v${{ needs.server.outputs.version }}" --draft=false --latest
website:
name: Website (downloads, updates, docs)