Skip to content

Commit 8114afc

Browse files
authored
Migrate from npm token to open id connect (#1248)
1 parent 7edcd2f commit 8114afc

File tree

2 files changed

+23
-10
lines changed

2 files changed

+23
-10
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
"@inkeep/agents-cli": patch
3+
"@inkeep/agents-manage-api": patch
4+
"@inkeep/agents-manage-ui": patch
5+
"@inkeep/agents-run-api": patch
6+
"@inkeep/agents-core": patch
7+
"@inkeep/agents-manage-mcp": patch
8+
"@inkeep/agents-sdk": patch
9+
"@inkeep/ai-sdk-provider": patch
10+
"@inkeep/create-agents": patch
11+
---
12+
13+
Update to open id connect for release action

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ permissions:
1717
pull-requests: write
1818
issues: write
1919
packages: write
20+
id-token: write
2021

2122
jobs:
2223
release:
@@ -28,17 +29,18 @@ jobs:
2829
with:
2930
fetch-depth: 0
3031

31-
- name: Configure npm and verify auth
32-
run: |
33-
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
34-
echo "Verifying npm authentication..."
35-
npm whoami
36-
env:
37-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
38-
3932
- name: Install
4033
uses: ./.github/composite-actions/install
4134

35+
- name: Setup npm for OIDC publishing
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: '20'
39+
registry-url: 'https://registry.npmjs.org'
40+
41+
- name: Ensure npm 11.5.1+ for OIDC support
42+
run: npm install -g npm@latest
43+
4244
- name: Setup Turborepo cache
4345
uses: actions/cache@v4
4446
with:
@@ -60,7 +62,6 @@ jobs:
6062
with:
6163
publish: pnpm release
6264
env:
63-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6465
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6566
HUSKY: 0
6667

@@ -78,6 +79,5 @@ jobs:
7879
pnpm changeset version --snapshot $TAG_NAME
7980
pnpm changeset publish --tag $TAG_NAME
8081
env:
81-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8282
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8383
HUSKY: 0

0 commit comments

Comments
 (0)