Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

chore: Switch to pnpm. #2387

Merged
merged 1 commit into from
Apr 13, 2022
Merged
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
22 changes: 14 additions & 8 deletions .github/workflows/deploy_playground.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ on:
workflow_dispatch:
pull_request:
paths:
- "crates"
- "website/playground"
- 'crates'
- 'website/playground'
branches:
- main


jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -22,16 +21,25 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: npm install --prefix website/playground
- uses: jetli/[email protected]
- run: npm run build --prefix website/playground -- --base=/$GITHUB_SHA/
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
run_install: |
args: [--prefix website/playground]
- run: pnpm build --prefix website/playground -- --base=/$GITHUB_SHA/
- name: Publish
uses: jakejarvis/s3-sync-action@master
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SOURCE_DIR: 'website/playground/dist' # optional: defaults to entire repository
SOURCE_DIR: 'website/playground/dist' # optional: defaults to entire repository
DEST_DIR: $GITHUB_SHA

- name: Set Playground URL
Expand Down Expand Up @@ -72,5 +80,3 @@ jobs:
issue-number: ${{ steps.pr-number.outputs.pr }}
body: |
${{ steps.url.outputs.url }}


18 changes: 12 additions & 6 deletions .github/workflows/deploy_playground_on_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ on:
branches:
- main



jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -20,14 +18,22 @@ jobs:
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: npm install --prefix website/playground
- uses: jetli/[email protected]
- run: npm run build --prefix website/playground
- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
run_install: |
args: [--prefix website/playground]
- run: pnpm build --prefix website/playground
- name: Publish
uses: jakejarvis/s3-sync-action@master
env:
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SOURCE_DIR: 'website/playground/dist' # optional: defaults to entire repository

SOURCE_DIR: 'website/playground/dist' # optional: defaults to entire repository
6 changes: 2 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ Profile-*.json
**/target
# Ignore test files that contributors could create locally
/test.*
# Ignore lockfiles
yarn.lock
npm-shrinkwrap.json
pnpm-lock.yaml
# Ignore third-party files
**/node_modules
**/dist
npm/cli-*
.pnpm-debug.log

# https://github.com/nnethercote/dhat-rs output file
dhat-heap.json
6 changes: 3 additions & 3 deletions website/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
## Installation

```
$ npm install
$ pnpm install
```

## Local Development

```
$ npm start
$ pnpm start
```

This command starts a local development server. Most changes are reflected live without having to restart the server.

## Build

```
$ npm build
$ pnpm build
```

This command generates static content into the build directory and can be served using any static contents hosting service.
Expand Down
Loading