Skip to content

Commit 3202a28

Browse files
chore: update CI for new npm publishign standards
1 parent 0d878e2 commit 3202a28

File tree

2 files changed

+8
-26
lines changed

2 files changed

+8
-26
lines changed

.github/workflows/publish-sdks.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313

1414
permissions:
1515
contents: read
16+
id-token: write # Required for npm trusted publishing (OIDC)
1617

1718
jobs:
1819
publish-packages:
@@ -35,6 +36,10 @@ jobs:
3536
with:
3637
version: 9.12.3
3738

39+
# Ensure npm 11.5.1+ for trusted publishing with OIDC
40+
- name: Update npm for trusted publishing
41+
run: npm install -g npm@latest
42+
3843
- name: Setup pnpm cache
3944
uses: actions/cache@v4
4045
with:
@@ -52,17 +57,14 @@ jobs:
5257
- name: Run tests (skip for now)
5358
run: echo "Skipping tests for initial publish"
5459

60+
# Trusted publishing uses OIDC - no NODE_AUTH_TOKEN needed
5561
- name: Publish @solana/connector
5662
working-directory: packages/connector
5763
run: npm publish --access public
58-
env:
59-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6064

6165
- name: Publish @solana/connector-debugger
6266
working-directory: packages/debugger
6367
run: npm publish --access public
64-
env:
65-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6668

6769
create-release:
6870
if: startsWith(github.ref, 'refs/tags/') && always() && !cancelled()

.gitignore

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,5 @@ report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
3838
# cursor
3939
.cursor
4040

41-
# Reference projects (local development only)
42-
/ai-main/
43-
/gill-master/
44-
/kit-main/
45-
/kite-main/
46-
/solana-docs/
47-
/wallet-standard-master/
48-
/viem-main/
49-
/wagmi-main/
50-
/mosaic-main/
51-
/mobile-wallet-adapter-main/
52-
/connectkit-main/
53-
/wallet-ui-main/
54-
/commerce-kit/
55-
/wallet-adapter-compat/
56-
/armadura/
57-
/explorer-master/
58-
/solana-transaction-optimizer-main/
59-
**/local/
60-
/hermis-main/
61-
/web/
62-
/web copy/
41+
# References
42+
/references/

0 commit comments

Comments
 (0)