diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cd314a1..403d0ff 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,13 +8,16 @@ on: jobs: publish-to-npm: runs-on: ubuntu-latest + permissions: + contents: read + id-token: write steps: - name: Checkout uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 registry-url: 'https://registry.npmjs.org' scope: ${{ github.repository_owner }} @@ -32,11 +35,12 @@ jobs: - name: Build run: yarn build + # Using latest npm instead of yarn 1.x cause it has OIDC support - name: Publish - run: yarn publish + run: | + npm install -g npm@11 + npm publish working-directory: dist - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} publish-to-github: runs-on: ubuntu-latest @@ -49,7 +53,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: 18 + node-version: 20 registry-url: 'https://npm.pkg.github.com' scope: ${{ github.repository_owner }} diff --git a/package.json b/package.json index c5cb9b7..a69968c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@1inch/multicall", - "version": "2.0.0", + "version": "2.0.5", "description": "High-weight optimized call-processor", "repository": { "type": "git",