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

Update to pnpm 8 #88

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
20 changes: 0 additions & 20 deletions .github/actions/setup-node-and-install/action.yml

This file was deleted.

38 changes: 6 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,37 +15,15 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: "Setup node and install dependencies"
uses: ./.github/actions/setup-node-and-install
# currently not used - as tests, lints, etc are all top-level commands / projects
# if we were to make each workspace isolated, we'd first need to copy tsc/eslint/vitest
# configs into each package -- but that would be slower than what today's setup is.
- id: set-matrix
name: "Find workspaces"
# generates a list of root-relative paths to each workspace
#
# the pipes line-by-line:
# Remove version information
# Remove the current directory
# Remove empty lines
# Remove leading slashes
run: |
root_of_repo=$(git rev-parse --show-toplevel)
workspaces=$(pnpm ls -r --depth -1 --long --parseable \
| cut -f1 -d':' \
| sed "s~$root_of_repo~~g" \
| sed '/^[[:space:]]*$/d' \
| sed 's~^/~~g')
echo "::set-output name=matrix::$(echo $workspaces)"
- uses: NullVoxPopuli/action-setup-pnpm@v2

test:
name: "Tests"
runs-on: "ubuntu-latest"
needs: ["install_dependencies"]
steps:
- uses: actions/checkout@v2
- name: "Setup node and install dependencies"
uses: ./.github/actions/setup-node-and-install
- uses: NullVoxPopuli/action-setup-pnpm@v2
- run: pnpm ci:specs

test_prod:
Expand All @@ -54,8 +32,7 @@ jobs:
needs: ["install_dependencies"]
steps:
- uses: actions/checkout@v2
- name: "Setup node and install dependencies"
uses: ./.github/actions/setup-node-and-install
- uses: NullVoxPopuli/action-setup-pnpm@v2
- run: pnpm ci:prod

typecheck:
Expand All @@ -64,8 +41,7 @@ jobs:
needs: ["install_dependencies"]
steps:
- uses: actions/checkout@v2
- name: "Setup node and install dependencies"
uses: ./.github/actions/setup-node-and-install
- uses: NullVoxPopuli/action-setup-pnpm@v2
- run: pnpm ci:types

lint:
Expand All @@ -74,8 +50,7 @@ jobs:
needs: ["install_dependencies"]
steps:
- uses: actions/checkout@v2
- name: "Setup node and install dependencies"
uses: ./.github/actions/setup-node-and-install
- uses: NullVoxPopuli/action-setup-pnpm@v2
- run: pnpm ci:lint

release:
Expand All @@ -85,5 +60,4 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: "Setup node and install dependencies"
uses: ./.github/actions/setup-node-and-install
- uses: NullVoxPopuli/action-setup-pnpm@v2
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,6 @@
},
"volta": {
"node": "19.8.1",
"pnpm": "8.1.0"
"pnpm": "8.1.1"
}
}
Loading