diff --git a/.github/workflows/cowFi-tokens.yml b/.github/workflows/cowFi-tokens.yml index 33e8dfd0..e1b5491f 100644 --- a/.github/workflows/cowFi-tokens.yml +++ b/.github/workflows/cowFi-tokens.yml @@ -9,6 +9,9 @@ permissions: id-token: write contents: read +env: + NODE_VERSION: lts/gallium + jobs: setup: name: Setup @@ -16,29 +19,17 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up node - uses: actions/setup-node@v2 - with: - node-version: lts/* - - - name: Set output of cache - id: yarn-cache - run: echo "::set-output name=dir::$(yarn cache dir)" - - - name: Cache yarn cache - uses: actions/cache@v2 - id: cache-yarn-cache + uses: actions/setup-node@v3 with: - path: ${{ steps.yarn-cache.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + node-version: ${{ env.NODE_VERSION }} + cache: yarn - name: Cache node_modules id: cache-node-modules - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: node_modules key: ${{ runner.os }}-${{ matrix.node-version }}-nodemodules1-${{ hashFiles('**/yarn.lock') }}