diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d5570c4..03c9252 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,12 +2,12 @@ name: Run CI on: push: - branches: + branches: - master - tags: + tags: - v* pull_request: - branches: + branches: - "*" jobs: @@ -23,6 +23,14 @@ jobs: with: node-version: ${{ matrix.node-version }} registry-url: https://registry.npmjs.org + + - name: Enable corepack + shell: bash + run: corepack enable yarn + + - name: Enable yarn cache + uses: actions/setup-node@v6 + with: cache: yarn - run: yarn install --frozen-lockfile diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml index d8ba677..df1678a 100644 --- a/.github/workflows/publish-release.yaml +++ b/.github/workflows/publish-release.yaml @@ -60,8 +60,16 @@ jobs: - uses: actions/checkout@v6 - uses: actions/setup-node@v6 with: - node-version: 22.x + node-version: 20.x registry-url: https://registry.npmjs.org + + - name: Enable corepack + shell: bash + run: corepack enable yarn + + - name: Enable yarn cache + uses: actions/setup-node@v6 + with: cache: yarn - name: Update package.json version