Skip to content

Commit

Permalink
ci: use vercel to build client
Browse files Browse the repository at this point in the history
  • Loading branch information
noyyyy committed Dec 4, 2023
1 parent 8b9e784 commit 94e418b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
env:
FOUNDRY_PROFILE: ci
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
W3S_KEY: ""

permissions:
pull-requests: write
Expand Down Expand Up @@ -49,8 +48,8 @@ jobs:
# - name: deploy on base sepolia testnet
# run: cd packages/contracts; pnpm run deploy:baseSepolia

- name: build
run: pnpm build
- name: build contracts output
run: cd packages/contracts; pnpm build

- name: Vercel Action
uses: amondnet/vercel-action@v25
Expand All @@ -59,6 +58,6 @@ jobs:
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
vercel-org-id: ${{ secrets.ORG_ID}} #Required
vercel-project-id: ${{ secrets.PROJECT_ID}} #Required
working-directory: ./packages/client/dist
working-directory: .
vercel-args: "--prod" #Optional
scope: ${{secrets.TEAM_SLUG}}
4 changes: 3 additions & 1 deletion packages/client/svelte.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ const config = {
preprocess: vitePreprocess(),

kit: {
adapter: vercelAdapter()
adapter: vercelAdapter({
runtime: "nodejs18.x"
})
}
};

Expand Down

0 comments on commit 94e418b

Please # to comment.