Move from yarn to npm

This commit is contained in:
Fedor Indutny
2024-06-24 13:14:32 -07:00
committed by GitHub
parent 59b27974f0
commit 2478bf1bd3
17 changed files with 53620 additions and 26702 deletions

View File

@@ -16,17 +16,17 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: '20.11.1'
- run: npm install -g yarn@1.22.10 npm@10.2.5
- run: npm install -g npm@10.2.5
- name: Cache danger node_modules
id: cache-desktop-modules
uses: actions/cache@v3
with:
path: danger/node_modules
key: danger-${{ runner.os }}-${{ hashFiles('danger/package.json', 'danger/yarn.lock') }}
key: danger-${{ runner.os }}-${{ hashFiles('danger/package.json', 'danger/package-lock.json') }}
- name: Install danger node_modules
if: steps.cache-desktop-modules.outputs.cache-hit != 'true'
run: cd danger && yarn install --frozen-lockfile
run: cd danger && npm ci --legacy-peer-deps
- name: Run DangerJS
run: yarn danger:ci
run: npm run danger:ci
env:
DANGER_GITHUB_API_TOKEN: ${{ secrets.AUTOMATED_GITHUB_PAT }}