Skip to content

Commit 702985e

Browse files
fix: rename publish.yml to release.yml to match npm trusted publisher config
1 parent c888491 commit 702985e

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
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

910
on:
1011
push:
@@ -25,7 +26,7 @@ jobs:
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
@@ -45,5 +46,3 @@ jobs:
4546
4647
- name: Publish
4748
run: npm publish --access public --provenance
48-
env:
49-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)