diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6e884f6..67b2603 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,26 +11,15 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: '18.16' + node-version: '20' + cache: 'yarn' registry-url: 'https://npm.pkg.github.com' - # Init cache to speed up yarn install - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - uses: actions/cache@v3 - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-node- - - name: Install dependencies run: | cd lib/functions/assets-cleanup && yarn install --frozen-lockfile && yarn install-layer && cd ../../.. diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index db48996..da87fe5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,12 +10,13 @@ jobs: runs-on: ubuntu-22.04 steps: - name: Checkout source code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: '18.16' + node-version: '20' + cache: 'yarn' registry-url: 'https://registry.npmjs.org' - name: Create release @@ -23,18 +24,6 @@ jobs: with: generateReleaseNotes: true - # Init cache to speed up yarn install - - name: Get yarn cache directory path - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" - - - uses: actions/cache@v3 - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-node- - - name: Install dependencies run: | cd lib/functions/assets-cleanup && yarn install --frozen-lockfile && yarn install-layer && cd ../../..