Skip to content

Commit

Permalink
fix: npm deploy (#441)
Browse files Browse the repository at this point in the history
* fix: npm deploy

* Update deploy.yaml

* Update deploy.yaml
  • Loading branch information
mr-uniswap authored Feb 7, 2025
1 parent fc37d17 commit 93cdc0a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -43,15 +43,15 @@ jobs:

- name: Install dependencies
run: |
yarn install --immutable --immutable-cache
git submodule update --init --recursive
- name: Compile
run: forge build

- 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

0 comments on commit 93cdc0a

Please sign in to comment.