From fc5f6f9d484b4a6d4559619bf66e53b11c1c55ca Mon Sep 17 00:00:00 2001 From: tuanphamcybozu <41720778+tuanphamcybozu@users.noreply.github.com> Date: Tue, 18 Jul 2023 15:11:47 +0700 Subject: [PATCH] fix: yamory job - cache is not stable (#398) --- .github/workflows/build.yml | 4 ++++ .github/workflows/license.yml | 9 ++++++--- .github/workflows/lint.yml | 2 ++ .github/workflows/release.yml | 3 +++ .github/workflows/test.yml | 2 ++ .github/workflows/yamory.yml | 3 ++- 6 files changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb8aebeedb..34ee180d26 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,14 +15,18 @@ jobs: - uses: ruby/setup-ruby@v1 with: ruby-version: ruby + - uses: jonabc/setup-licensed@d6b3a6f7058c2b40c06d205e13e15c2418977566 # renovate: tag=v1.1.4 with: version: '4.x' github_token: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 with: version: 8.6.5 + - uses: actions/setup-node@v3 with: node-version: '16' diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml index 275bf9a589..f7ea36c5bd 100644 --- a/.github/workflows/license.yml +++ b/.github/workflows/license.yml @@ -22,6 +22,7 @@ jobs: - uses: pnpm/action-setup@v2 with: version: 8.6.5 + - uses: actions/setup-node@v3 with: node-version: '16' @@ -53,13 +54,15 @@ jobs: - name: Check out repository uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 8.6.5 + - name: Use Node.js 16.x uses: actions/setup-node@v3 with: node-version: 16.x - - - name: Install pnpm - run: npm install -g pnpm@8.6.5 + cache: 'pnpm' - name: Install dependencies run: pnpm install --frozen-lockfile diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d7b8d28099..6a95bcc611 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -14,9 +14,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 with: version: 8.6.5 + - uses: actions/setup-node@v3 with: node-version: '16' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d739c1d520..c08bc4ac81 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,10 +47,13 @@ jobs: with: version: '3.x' github_token: ${{ secrets.GITHUB_TOKEN }} + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 with: version: 8.6.5 + - uses: actions/setup-node@v3 with: node-version: '16' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 95d9f0dc38..5cd1732f63 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -22,9 +22,11 @@ jobs: steps: - run: git config --global core.autocrlf false - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 with: version: 8.6.5 + - uses: actions/setup-node@v3 with: node-version: '16' diff --git a/.github/workflows/yamory.yml b/.github/workflows/yamory.yml index 9e0eefaaaf..a2ea0789f4 100644 --- a/.github/workflows/yamory.yml +++ b/.github/workflows/yamory.yml @@ -11,13 +11,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 with: version: 8.6.5 + - uses: actions/setup-node@v3 with: node-version: '16' - cache: 'pnpm' - name: download and validate Yamory script working-directory: /tmp