Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: npm deploy #441

Merged
merged 3 commits into from
Feb 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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