[pull] main from dotnet:main #765
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: Validate package-lock.json against source feeds | |
on: | |
# Manual run | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- 'package-lock.json' | |
jobs: | |
validate-package-lock-json: | |
name: 'Validate package-lock.json against source feeds' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: false | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Run npm ci to validate package-lock.json against the feed | |
shell: pwsh | |
id: npm-install-script | |
run: npm ci --prefer-online --fetch-retries 5 |