diff --git a/.github/workflows/pr-preview.yml b/.github/workflows/pr-preview.yml index 4cdba5c..6492d79 100644 --- a/.github/workflows/pr-preview.yml +++ b/.github/workflows/pr-preview.yml @@ -24,13 +24,14 @@ jobs: - uses: actions/setup-node@v1 with: node-version: '18' + - run: corepack enable - uses: actions/cache@v4 id: yarn-cache name: Load npm deps from cache with: path: '**/node_modules' key: ${{ runner.os }}-yarn-14-${{ hashFiles('yarn.lock') }} - - run: yarn install --frozen-lockfile + - run: yarn install --immutable if: steps.yarn-cache.outputs.cache-hit != 'true' - run: yarn lint:js name: Lint JS diff --git a/.github/workflows/promote.yml b/.github/workflows/promote.yml index 77793d2..bfb5d10 100644 --- a/.github/workflows/promote.yml +++ b/.github/workflows/promote.yml @@ -13,12 +13,13 @@ jobs: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} steps: - uses: actions/checkout@v2 - - name: Build for promotion - run: yarn install --frozen-lockfile && yarn build - uses: actions/setup-node@v3 with: node-version: '18.x' registry-url: 'https://registry.npmjs.org' + - run: corepack enable + - name: Build for promotion + run: yarn install --immutable && yarn build - name: GitHub Tag Name example run: | echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"