-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run pnpm import and squash other changes to ease rebasing
- Loading branch information
1 parent
96e3d2f
commit ee56705
Showing
20 changed files
with
27,209 additions
and
58,836 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
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,53 @@ | ||
# 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. | ||
frozen-lockfile: | ||
default: false | ||
description: Whether to install dependencies using `--frozen-lockfile`. | ||
node-version: | ||
default: 14 | ||
description: The node version to use. | ||
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 }} | ||
cache: pnpm | ||
cache-dependency-path: | | ||
pnpm-workspace.yaml | ||
pnpm-lock.yaml | ||
.npmrc | ||
- name: Install | ||
if: inputs.install | ||
shell: bash | ||
run: "pnpm install ${{ inputs.frozen-lockfile && '--frozen-lockfile' || '' }}" | ||
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
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.