Skip to content

Commit f4032b8

Browse files
committed
DOPS-1719 Implement npmjs publishing using OIDC
1 parent 8f1f98b commit f4032b8

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/publish.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@ on:
99
jobs:
1010
publish-to-npm:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: read
14+
id-token: write
1215
steps:
1316
- name: Checkout
1417
uses: actions/checkout@v4
1518

1619
- name: Install pnpm
1720
uses: pnpm/action-setup@v4
1821
with:
19-
version: 9
22+
version: 10
2023

2124
- uses: actions/setup-node@v4
2225
with:
@@ -25,6 +28,10 @@ jobs:
2528
scope: ${{ github.repository_owner }}
2629
cache: pnpm
2730

31+
# pnpm uses npm under the hood, so we need to upgrade it to the latest version to suport OIDC
32+
- name: Install npm@11
33+
run: npm install -g npm@11
34+
2835
- name: Install dependencies
2936
run: pnpm install --frozen-lockfile
3037

@@ -40,8 +47,6 @@ jobs:
4047
pnpm publish --no-git-checks --access=public
4148
fi
4249
working-directory: dist
43-
env:
44-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
4550

4651
publish-to-github:
4752
runs-on: ubuntu-latest
@@ -55,7 +60,7 @@ jobs:
5560
- name: Install pnpm
5661
uses: pnpm/action-setup@v4
5762
with:
58-
version: 9
63+
version: 10
5964

6065
- uses: actions/setup-node@v4
6166
with:

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@1inch/fusion-sdk",
3-
"version": "2.4.1",
3+
"version": "2.4.2",
44
"description": "1inch Fusion SDK",
55
"author": "@1inch",
66
"files": [

0 commit comments

Comments
 (0)