-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Try pnpm (take two) #38624
Closed
Closed
Try pnpm (take two) #38624
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
e8eefdf
Run pnpm import and squash other changes to ease rebasing
sarayourfriend 1683f5b
Remove package-lock.json linting
sarayourfriend d1cc228
Declare dependency on csstype
sarayourfriend 5fdf1e2
Fix wonky @types/react resolution due to react-native having differen…
sarayourfriend 482c2a7
Try fixing react type resolution with hoisting
sarayourfriend 815175f
Try a combination of hositing and tsconfig paths
sarayourfriend aef8dc2
Add explicit dev dependency on @types/node
sarayourfriend f41a70a
Add explicit jest-circus dependency
sarayourfriend 9d69f1b
Remove lockfile linting step
sarayourfriend 07d7411
Modify performance test script for pnpm
sarayourfriend d00f798
Use `pnpm list` to list installed packages
sarayourfriend 199de59
Use `pnpm` to install and build plugin zip
sarayourfriend 6039e83
Fix running native package scripts
sarayourfriend 4951764
Fix build script
sarayourfriend 202965e
Try hoisting within a package
sarayourfriend bd1d499
Improve setup node action and use better defaults
sarayourfriend 618ae4f
Correct documentation/output
sarayourfriend f53d8d1
Try hositing inside the package that actually uses it
sarayourfriend 57b64dd
Try shamefully-hoist
sarayourfriend 7a351dc
Fix workspace package references
sarayourfriend cccb4df
Try using link: for workspace root dependencies
sarayourfriend b742db6
Patch eslint module resolution
sarayourfriend 097bc58
Hoist stylelint dependencies
sarayourfriend 97bbb1a
Break down and just hoist stuff
sarayourfriend 359fb8d
Hoist namespaced plugins
sarayourfriend fd010de
Try workaround for npm-run-all not supporting pnpm
sarayourfriend e5066de
Add missing top-level dev dependency
sarayourfriend File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,52 @@ | ||
# this is a reusable workflow that will be called by the | ||
# push_staging and push_production workflows | ||
# more info: https://docs.github.com/en/actions/learn-github-actions/reusing-workflows | ||
|
||
name: gutenberg/setup-node-env | ||
description: Setup the Node.js environment including `pnpm` and dependencies | ||
|
||
inputs: | ||
install: | ||
default: true | ||
description: Whether to install dependencies. | ||
install-working-directory: | ||
required: false | ||
description: Optional working directory to run installation in. | ||
node-version: | ||
required: false | ||
description: The node version to use. If not provided, the version in `.nvmrc` will be used. | ||
pnpm-version: | ||
default: 6.29.1 | ||
description: The pnpm version to use. | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- uses: pnpm/[email protected] | ||
with: | ||
version: ${{ inputs.pnpm-version }} | ||
|
||
- name: Cache pnpm modules | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}- | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
node-version-file: ${{ !inputs.node-version && '.nvmrc' || null }} | ||
cache: pnpm | ||
cache-dependency-path: | | ||
pnpm-workspace.yaml | ||
pnpm-lock.yaml | ||
.npmrc | ||
.nvmrc | ||
|
||
- name: Install | ||
if: inputs.install | ||
shell: bash | ||
run: "pnpm install" | ||
working-directory: ${{ inputs.install-working-directory }} |
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
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
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 |
---|---|---|
|
@@ -14,15 +14,8 @@ jobs: | |
steps: | ||
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4 | ||
|
||
- name: Use desired version of NodeJS | ||
uses: actions/setup-node@38d90ce44d5275ad62cc48384b3d8a58c500bb5f # v2.2.2 | ||
- uses: ./.github/action/setup-node-env | ||
with: | ||
node-version: 14 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Better to keep this? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The default is set to 14. I only kept passing it to the action in places that were still using the matrix strategy for it. |
||
cache: npm | ||
|
||
- name: Npm install | ||
run: | | ||
npm ci | ||
|
||
- name: Report flaky tests | ||
uses: ./.github/report-flaky-tests | ||
|
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
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
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should still be
matrix.node
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoops, yes it should be!