diff --git a/.github/actions/node-setup/action.yml b/.github/actions/node-setup/action.yml index f0f138e..efe3547 100644 --- a/.github/actions/node-setup/action.yml +++ b/.github/actions/node-setup/action.yml @@ -1,18 +1,23 @@ name: "Setup" +description: "Yarn cache action" runs: using: "composite" steps: + - name: Corepack enable + run: corepack enable + shell: bash + # https://github.com/actions/cache/blob/main/examples.md#node---yarn # https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT + run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT shell: bash - name: Node cache id: node-cache - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ${{ steps.yarn-cache-dir-path.outputs.dir }} @@ -22,5 +27,5 @@ runs: ${{ runner.os }}-node- - name: Package Install - run: yarn install + run: yarn install --immutable shell: bash diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 853e83f..d2e79f9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup uses: ./.github/actions/node-setup diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bc619ec..c5bd37e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,7 +7,7 @@ jobs: sync-branches: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 @@ -52,7 +52,7 @@ jobs: name: "ESR-Lepton-Proton-Style" branch: "proton-style" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ matrix.branch }}