-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): add a circleci config to bundle packages (#6446)
* chore(ci): add a circleci config to bundle packages * fix: store escaped package names in the manifest * chore: run job only on current
- Loading branch information
1 parent
1d0fd3e
commit f4c7cfe
Showing
5 changed files
with
470 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
version: 2.1 | ||
|
||
workflows: | ||
version: 2 | ||
build-and-deploy: | ||
jobs: | ||
- build: | ||
filters: | ||
branches: | ||
only: | ||
- current | ||
|
||
jobs: | ||
build: | ||
docker: | ||
- image: cimg/node:20.12 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
name: Restore pnpm Package Cache | ||
keys: | ||
- pnpm-packages-{{ checksum "pnpm-lock.yaml" }} | ||
- run: | ||
name: Install pnpm package manager | ||
command: | | ||
corepack enable --install-directory ~/bin | ||
corepack prepare pnpm@latest-8 --activate | ||
pnpm config set store-dir .pnpm-store | ||
- run: | ||
name: Install Dependencies | ||
command: | | ||
pnpm install | ||
- save_cache: | ||
name: Save pnpm Package Cache | ||
key: pnpm-packages-{{ checksum "pnpm-lock.yaml" }} | ||
paths: | ||
- .pnpm-store | ||
- run: | ||
name: Build bundle | ||
command: pnpm run build:bundle | ||
- run: | ||
name: Copy to bucket | ||
command: npm run bundle:upload |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.