Skip to content

Commit 666917d

Browse files
committed
DOPS-1719 Implement npmjs publishing using OIDC, try manual token exhange
1 parent d3b666c commit 666917d

File tree

2 files changed

+13
-10
lines changed

2 files changed

+13
-10
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717

1818
- uses: actions/setup-node@v3
1919
with:
20-
node-version: 18
20+
node-version: 20
2121
registry-url: 'https://registry.npmjs.org'
2222
scope: ${{ github.repository_owner }}
2323

@@ -36,8 +36,11 @@ jobs:
3636
run: yarn build
3737

3838
- name: Publish
39-
# Use NPM since npmjs OIDC requires support in package manager
40-
run: npm publish
39+
run: |
40+
npm install -g npm@latest
41+
npm --version
42+
npm config set loglevel verbose
43+
npm publish
4144
working-directory: dist
4245

4346
publish-to-github:
@@ -51,7 +54,7 @@ jobs:
5154

5255
- uses: actions/setup-node@v3
5356
with:
54-
node-version: 18
57+
node-version: 20
5558
registry-url: 'https://npm.pkg.github.com'
5659
scope: ${{ github.repository_owner }}
5760

@@ -69,8 +72,8 @@ jobs:
6972
- name: Build
7073
run: yarn build
7174

72-
- name: Publish
73-
run: yarn publish
74-
working-directory: dist
75-
env:
76-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
75+
# - name: Publish
76+
# run: yarn publish
77+
# working-directory: dist
78+
# env:
79+
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@1inch/multicall",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"description": "High-weight optimized call-processor",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)