Add lockfile check

This commit is contained in:
Adria Navarro 2024-10-30 10:37:34 +01:00
parent e8771f7b51
commit 31e967b888
1 changed files with 17 additions and 0 deletions

View File

@ -309,3 +309,20 @@ jobs:
} else { } else {
console.log('All good, the submodule had been merged and setup correctly!') console.log('All good, the submodule had been merged and setup correctly!')
} }
check-lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
submodules: ${{ env.IS_OSS_CONTRIBUTOR == 'false' }}
token: ${{ secrets.PERSONAL_ACCESS_TOKEN || github.token }}
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: yarn
- run: yarn --frozen-lockfile
- run: yarn --production --frozen-lockfile