-
Notifications
You must be signed in to change notification settings - Fork 203
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
5 additions
and
25 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 |
---|---|---|
|
@@ -17,23 +17,13 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: [14, 16] | ||
node: [16] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3.4.1 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- id: find-yarn-cache-folder | ||
name: Find Yarn's cache folder | ||
run: echo "::set-output name=path::$(yarn config get cacheFolder)" | ||
- name: Cache Yarn's cache folder | ||
uses: actions/[email protected] | ||
with: | ||
path: ${{ steps.find-yarn-cache-folder.outputs.path }} | ||
key: yarn-cache-folder-os-${{ runner.os }}-node-${{ env.node-version }}-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
yarn-cache-folder-os-${{ runner.os }}-node-${{ env.node-version }}- | ||
yarn-cache-folder-os-${{ runner.os }}- | ||
cache: 'yarn' | ||
- name: Install dependencies and test | ||
run: | | ||
yarn install --immutable | ||
|
@@ -47,20 +37,10 @@ jobs: | |
if: github.actor != 'github-actions[bot]' && github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/next') | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3.4.1 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
- id: find-yarn-cache-folder | ||
name: Find Yarn's cache folder | ||
run: echo "::set-output name=path::$(yarn config get cacheFolder)" | ||
- name: Cache Yarn's cache folder | ||
uses: actions/[email protected] | ||
with: | ||
path: ${{ steps.find-yarn-cache-folder.outputs.path }} | ||
key: yarn-cache-folder-os-${{ runner.os }}-node-${{ env.node-version }}-${{ hashFiles('yarn.lock') }} | ||
restore-keys: | | ||
yarn-cache-folder-os-${{ runner.os }}-node-${{ env.node-version }}- | ||
yarn-cache-folder-os-${{ runner.os }}- | ||
cache: 'yarn' | ||
- name: Build and release | ||
run: | | ||
yarn install --immutable | ||
|