File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Template for the public repo's .github/workflows/publish.yml
2- # Copy this file to: swapkit/api-sdk-typescript/.github/workflows/publish.yml
1+ # Publish workflow for the public api-sdk-typescript repo.
2+ # Managed by the SDK Sync workflow in the API monorepo — do not edit directly.
33#
4- # Required secret in the public repo:
5- # NPM_TOKEN — npm automation token with publish access to @swapkit scope
4+ # Uses npm Trusted Publishing (OIDC) — no NPM_TOKEN secret needed.
5+ # Configure at: https://www.npmjs.com/package/@swapkit/api-sdk-typescript/access
6+ # Trusted Publisher → swapkit/api-sdk-typescript → release.yml
67
7- name : Publish to npm
8+ name : Release
89
910on :
1011 push :
2526 registry-url : " https://registry.npmjs.org"
2627
2728 - name : Install dependencies
28- run : npm ci
29+ run : npm install
2930
3031 - name : Build
3132 run : npm run build
4546
4647 - name : Publish
4748 run : npm publish --access public --provenance
48- env :
49- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments