generated from EthSign/hardhat-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
48 additions
and
30 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 |
---|---|---|
|
@@ -53,21 +53,27 @@ jobs: | |
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/cache@v3 | ||
name: Set up cache | ||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
version: 8 | ||
run_install: false | ||
|
||
- name: Set up node | ||
uses: actions/setup-node@v3 | ||
- name: Get pnpm store directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- name: Setup pnpm cache | ||
uses: actions/cache@v3 | ||
with: | ||
node-version: '20' | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: npm i | ||
run: pnpm i --frozen-lockfile | ||
|
||
- name: Build application | ||
run: npm run build | ||
|
@@ -83,21 +89,27 @@ jobs: | |
- name: Check out code | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/cache@v3 | ||
name: Set up cache | ||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
version: 8 | ||
run_install: false | ||
|
||
- name: Set up node | ||
uses: actions/setup-node@v3 | ||
- name: Get pnpm store directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- name: Setup pnpm cache | ||
uses: actions/cache@v3 | ||
with: | ||
node-version: '20' | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: npm i | ||
run: pnpm i --frozen-lockfile | ||
|
||
- name: Build application | ||
run: npm run build | ||
|
@@ -114,21 +126,27 @@ jobs: | |
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/cache@v3 | ||
name: Set up cache | ||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-node- | ||
version: 8 | ||
run_install: false | ||
|
||
- name: Set up node | ||
uses: actions/setup-node@v3 | ||
- name: Get pnpm store directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- name: Setup pnpm cache | ||
uses: actions/cache@v3 | ||
with: | ||
node-version: '20' | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install dependencies | ||
run: npm i | ||
run: pnpm i --frozen-lockfile | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
|