From 9df876dc8eb55090f105fc3c976a8cbb135ced27 Mon Sep 17 00:00:00 2001 From: binh-dam-ibigroup <56846598+binh-dam-ibigroup@users.noreply.github.com> Date: Tue, 19 Sep 2023 16:24:57 -0400 Subject: [PATCH] ci(node-ci,percy): Update actions/setup-node to v3 with deps caching. --- .github/workflows/node-ci.yml | 7 ++++--- .github/workflows/percy.yml | 14 ++++++++------ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/node-ci.yml b/.github/workflows/node-ci.yml index 79874aecd..8378a93b6 100644 --- a/.github/workflows/node-ci.yml +++ b/.github/workflows/node-ci.yml @@ -16,11 +16,12 @@ jobs: # This allows us to work with the repository during the lint step fetch-depth: 2 - name: Use Node.js 16.x - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: '16' + cache: 'yarn' - name: Install npm packages using cache - uses: bahmutov/npm-install@v1 + run: yarn - name: Copy example config run: cp example-config.yml config.yml - name: Lint code diff --git a/.github/workflows/percy.yml b/.github/workflows/percy.yml index c5e878b72..40e9a831c 100644 --- a/.github/workflows/percy.yml +++ b/.github/workflows/percy.yml @@ -16,11 +16,12 @@ jobs: # This allows us to work with the repository during the lint step fetch-depth: 2 - name: Use Node.js 16.x - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: '16' + cache: 'yarn' - name: Install npm packages using cache - uses: bahmutov/npm-install@v1 + run: yarn - name: Download OTP2 config file run: curl $PERCY_OTP2_CONFIG_URL --output /tmp/otp2config.yml env: @@ -44,11 +45,12 @@ jobs: # This allows us to work with the repository during the lint step fetch-depth: 2 - name: Use Node.js 16.x - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: '16' + cache: 'yarn' - name: Install npm packages using cache - uses: bahmutov/npm-install@v1 + run: yarn - name: Download OTP2 config file run: curl $PERCY_OTP2_CONFIG_URL --output /tmp/otp2config.yml env: