Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/ci-libnpmhook.yml')
-rw-r--r--.github/workflows/ci-libnpmhook.yml31
1 files changed, 6 insertions, 25 deletions
diff --git a/.github/workflows/ci-libnpmhook.yml b/.github/workflows/ci-libnpmhook.yml
index 81eb7fe68..f98768a23 100644
--- a/.github/workflows/ci-libnpmhook.yml
+++ b/.github/workflows/ci-libnpmhook.yml
@@ -21,6 +21,7 @@ on:
jobs:
lint:
+ if: github.repository_owner == 'npm'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
@@ -31,13 +32,11 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18.x
- - name: Update npm to latest
- run: npm i --prefer-online --no-fund --no-audit -g npm@latest
- - run: npm -v
- - run: npm i --ignore-scripts --no-audit --no-fund
- - run: npm run lint -w libnpmhook
+ - run: node . run resetdeps
+ - run: node . run lint -w libnpmhook
test:
+ if: github.repository_owner == 'npm'
strategy:
fail-fast: false
matrix:
@@ -68,25 +67,7 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- - name: Update to workable npm (windows)
- # node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows
- if: matrix.platform.os == 'windows-latest' && (startsWith(matrix.node-version, '12.') || startsWith(matrix.node-version, '14.'))
- run: |
- curl -sO https://registry.npmjs.org/npm/-/npm-7.5.4.tgz
- tar xf npm-7.5.4.tgz
- cd package
- node lib/npm.js install --no-fund --no-audit -g ..\npm-7.5.4.tgz
- cd ..
- rmdir /s /q package
- - name: Update npm to 7
- # If we do test on npm 10 it needs npm7
- if: startsWith(matrix.node-version, '10.')
- run: npm i --prefer-online --no-fund --no-audit -g npm@7
- - name: Update npm to latest
- if: ${{ !startsWith(matrix.node-version, '10.') }}
- run: npm i --prefer-online --no-fund --no-audit -g npm@latest
- - run: npm -v
- - run: npm i --ignore-scripts --no-audit --no-fund
+ - run: node . run resetdeps
- name: add tap problem matcher
run: echo "::add-matcher::.github/matchers/tap.json"
- - run: npm test --ignore-scripts -w libnpmhook
+ - run: node . test --ignore-scripts -w libnpmhook