Skip to content
Closed
Show file tree
Hide file tree
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
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "yarn"
cache: "pnpm"

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Install dependencies
run: yarn install
run: pnpm install

- name: Run build
run: yarn build
run: pnpm build
13 changes: 9 additions & 4 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,22 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: "18"
cache: "yarn"
cache: "pnpm"

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Install dependencies
run: yarn install
run: pnpm install

- name: Install tsx
run: npm install -g tsx

- name: Install dependencies
working-directory: ./sdk
run: yarn install
run: pnpm install

- name: Get version from package.json
id: package_version
Expand All @@ -36,7 +41,7 @@ jobs:
run: echo "SDK version is $PACKAGE_VERSION"

- name: Build
run: yarn generate:sdk
run: pnpm generate:sdk

- name: Push to npm
working-directory: ./sdk
Expand Down
1 change: 0 additions & 1 deletion .yarnrc

This file was deleted.

13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ FROM node:18.20-slim AS base

WORKDIR /app

# Upgrade packages
# Upgrade packages and install pnpm
RUN apt-get -y update && \
apt-get -y upgrade && \
apt-get -y install libssl-dev
apt-get -y install libssl-dev && \
npm install -g pnpm

##############################
##############################
Expand Down Expand Up @@ -40,10 +41,10 @@ COPY . .
# Install dependencies for both development and production (May need devDependencies to build)
# Build the project
# Prune dev dependencies from the packages
RUN yarn install --frozen-lockfile --production=false --network-timeout 1000000 && \
yarn build && \
yarn copy-files && \
yarn install --frozen-lockfile --production=true --network-timeout 1000000
RUN pnpm install --frozen-lockfile && \
pnpm build && \
pnpm copy-files && \
pnpm install --frozen-lockfile --prod

##############################
##############################
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@
"schema": "./src/prisma/schema.prisma"
},
"resolutions": {
"@thirdweb-dev/auth/**/axios": ">=1.7.8",
"@thirdweb-dev/auth/**/web3-utils": ">=4.2.1",
"axios": ">=1.7.8",
"web3-utils": ">=4.2.1",
"@grpc/grpc-js": ">=1.8.22",
"body-parser": ">=1.20.3",
"cookie": ">=0.7.0",
Expand All @@ -103,6 +103,5 @@
"secp256k1": ">=4.0.4",
"ws": ">=8.17.1",
"cross-spawn": ">=7.0.6"
},
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
}
}
Loading
Loading