Skip to content

Commit cb6b6c7

Browse files
committed
DOPS-1719 Implement npmjs publishing using OIDC
1 parent e1c1bb9 commit cb6b6c7

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@v3
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,13 +28,15 @@ 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

3138
- name: Publish 🚀
3239
run: pnpm publish --no-git-checks --access=public
33-
env:
34-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
3540

3641
publish-to-github:
3742
runs-on: ubuntu-latest
@@ -45,7 +50,7 @@ jobs:
4550
- name: Install pnpm
4651
uses: pnpm/action-setup@v4
4752
with:
48-
version: 9
53+
version: 10
4954

5055
- uses: actions/setup-node@v4
5156
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/eslint-config",
3-
"version": "3.0.7",
3+
"version": "3.0.8",
44
"main": "index.mjs",
55
"license": "UNLICENSED",
66
"dependencies": {

0 commit comments

Comments
 (0)