Skip to content

Commit 282e566

Browse files
committed
feat: testing ecr 5
1 parent d18ed66 commit 282e566

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/base.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,25 @@ jobs:
4444
with:
4545
fetch-depth: 0
4646
persist-credentials: false
47+
48+
- name: Use Node.js ${{ matrix.node-version }}
49+
uses: actions/setup-node@v1
50+
with:
51+
node-version: ${{ matrix.node-version }}
52+
53+
- name: Get yarn cache directory path
54+
id: yarn-cache-dir-path
55+
run: echo "::set-output name=dir::$(yarn cache dir)"
56+
- uses: actions/cache@v1
57+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
58+
with:
59+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
60+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
61+
restore-keys: |
62+
${{ runner.os }}-yarn-
63+
64+
- name: install packages using yarn.lock
65+
run: |
66+
echo "{{secrets.WF_NPM_USER}}:registry=https://npm.pkg.github.com" >> .npmrc
67+
echo "//npm.pkg.github.com/:_authToken=${{ secretes.WF_NPM_TOKEN }}" >> .npmrc
68+
yarn --frozen-lockfile

0 commit comments

Comments
 (0)