-
-
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.
Merge pull request #20559 from emberjs/pnpm
Switch to pnpm
- Loading branch information
Showing
52 changed files
with
14,187 additions
and
12,241 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,35 @@ | ||
name: Setup node and pnpm | ||
description: Setup node and install dependencies using pnpm | ||
inputs: | ||
use_lockfile: | ||
description: 'Whether to use the lockfile vs latest floating dependencies' | ||
required: false | ||
default: true | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- uses: pnpm/action-setup@v2 | ||
name: Install pnpm | ||
with: | ||
version: 8 | ||
run_install: false | ||
- name: Install Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
registry-url: 'https://registry.npmjs.org' | ||
cache: pnpm | ||
- uses: actions/cache@v3 | ||
name: Setup cache for puppeteer | ||
with: | ||
# See .puppeteerrc.cjs, where we set this as the place puppeteer | ||
# installs the browser. It needs to be cached the same as our pnpm | ||
# packages are because it won't get reinstalled if our modules are | ||
# cached. | ||
path: .puppeteer-cache | ||
key: ${{ runner.os }}-puppeteer-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-puppeteer- | ||
- run: pnpm install ${{ fromJSON('{"false":"--no-lockfile", "true":"--frozen-lockfile"}')[inputs.use_lockfile] }} | ||
shell: bash |
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 |
---|---|---|
|
@@ -10,35 +10,24 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: yarn | ||
- name: install dependencies | ||
run: yarn install --frozen-lockfile --non-interactive | ||
- uses: ./.github/actions/setup | ||
- name: build | ||
env: | ||
DISABLE_SOURCE_MAPS: true | ||
BROCCOLI_ENV: production | ||
run: yarn ember build | ||
run: pnpm ember build | ||
- name: test | ||
env: | ||
TEST_SUITE: each-package | ||
run: yarn test | ||
run: pnpm test | ||
|
||
release: | ||
name: Tag + Release | ||
runs-on: ubuntu-latest | ||
needs: [test] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16.x | ||
cache: yarn | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: install dependencies | ||
run: yarn install --frozen-lockfile --non-interactive | ||
- uses: ./.github/actions/setup | ||
- name: setup git | ||
run: | | ||
git config --local user.email '[email protected]' | ||
|
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.