From 93cdc0a02edf7417531f619adef10514f3206477 Mon Sep 17 00:00:00 2001 From: mr-uniswap <144828035+mr-uniswap@users.noreply.github.com> Date: Fri, 7 Feb 2025 13:42:17 -0500 Subject: [PATCH] fix: npm deploy (#441) * fix: npm deploy * Update deploy.yaml * Update deploy.yaml --- .github/workflows/deploy.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 6fc861c05..69bc8bc9a 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -30,11 +30,11 @@ jobs: uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 - name: Setup Node - uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 + uses: actions/setup-node@v4.2.0 with: - cache: yarn - node-version: 18 + node-version: "20.x" registry-url: "https://registry.npmjs.org" + scope: "@uniswap" - name: Install Foundry uses: foundry-rs/foundry-toolchain@v1 @@ -43,7 +43,6 @@ jobs: - name: Install dependencies run: | - yarn install --immutable --immutable-cache git submodule update --init --recursive - name: Compile @@ -51,7 +50,8 @@ jobs: - name: Release env: - NPM_CONFIG_USERCONFIG: /dev/null NODE_AUTH_TOKEN: ${{ env.NPM_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc && yarn publish + run: | + npm set "//registry.npmjs.org/:_authToken" ${{ env.NPM_TOKEN }} + npm publish --provenance --access public