chore(deps): update dependency nx to v20.1.3 (#1578) #739
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update lockfile | |
on: | |
push: | |
branches: | |
- main | |
- build/ci | |
jobs: | |
check_lockfile: | |
name: Check lockfile status | |
runs-on: ubuntu-latest | |
env: | |
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.15.0 | |
- uses: pnpm/action-setup@v4 | |
name: Setup PNPM & Install dependencies 👨🏻💻 | |
with: | |
version: 9.5.0 | |
run_install: false | |
- name: Get pnpm store directory | |
id: pnpm-cache | |
shell: bash | |
run: | | |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT | |
- name: Cache node_modules & NX 📦 | |
uses: actions/[email protected] | |
with: | |
path: | | |
${{ steps.pnpm-cache.outputs.STORE_PATH }} | |
/home/runner/.cache/Cypress | |
./nx | |
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/package.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ hashFiles('**/package.json') }} | |
${{ runner.os }}-node-${{ hashFiles('**/package.json') }} | |
- name: Install | |
run: pnpm install --frozen-lockfile | |
- name: Configure CI Git User | |
run: | | |
git config --global user.name 'Danilo Velasquez' | |
git config --global user.email '[email protected]' | |
git remote set-url origin https://[email protected]/dvelasquez/lighthouse-viewer | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Check for uncommitted changes | |
id: check-changes | |
uses: mskri/[email protected] | |
- name: Update lockfile | |
if: steps.check-changes.outputs.outcome == failure() | |
run: | | |
git add pnpm-lock.yaml | |
git commit -m "chore: update lockfile [skip ci]" | |
git push |