diff options
40 files changed, 753 insertions, 513 deletions
diff --git a/.github/workflows/ci-libnpmaccess.yml b/.github/workflows/ci-libnpmaccess.yml index b25bc613a..d0cac65dc 100644 --- a/.github/workflows/ci-libnpmaccess.yml +++ b/.github/workflows/ci-libnpmaccess.yml @@ -4,8 +4,6 @@ on: pull_request: paths: - workspaces/libnpmaccess/** - branches: - - '*' push: paths: - workspaces/libnpmaccess/** @@ -20,57 +18,46 @@ jobs: steps: # Checkout the npm/cli repo - uses: actions/checkout@v2 - - name: Use Node.js 16.x - uses: actions/setup-node@v2 + - uses: actions/setup-node@v2 with: - node-version: 16.x - cache: npm - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - name: Run linting - run: node ./bin/npm-cli.js run posttest -w workspaces/libnpmaccess - env: - DEPLOY_VERSION: testing + node-version: '16' + - run: npm i --prefer-online -g npm@latest + - run: npm i + - run: npm run lint -w workspaces/libnpmaccess test: strategy: fail-fast: false matrix: - node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x] + node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.13.0, 16.x] platform: - os: ubuntu-latest shell: bash - os: macos-latest shell: bash - os: windows-latest - shell: bash - - os: windows-latest - shell: powershell - + shell: cmd runs-on: ${{ matrix.platform.os }} defaults: run: shell: ${{ matrix.platform.shell }} - steps: - # Checkout the npm/cli repo - - uses: actions/checkout@v2 - - # Installs the specific version of Node.js - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: npm - - # Run the installer script - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - # Run the tests, but not if we're just gonna do coveralls later anyway - - name: Run Tap tests - run: node ./bin/npm-cli.js run -w workspaces/libnpmaccess --ignore-scripts test -- -t600 -Rbase -c + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + # node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows + - name: Update to workable npm (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 + run: npm i --prefer-online --no-fund --no-audit -g npm@latest + - run: npm -v + - run: npm i + - run: npm test --ignore-scripts -w workspaces/libnpmaccess diff --git a/.github/workflows/ci-libnpmdiff.yml b/.github/workflows/ci-libnpmdiff.yml index 5ff0fdc9f..0ff657222 100644 --- a/.github/workflows/ci-libnpmdiff.yml +++ b/.github/workflows/ci-libnpmdiff.yml @@ -4,8 +4,6 @@ on: pull_request: paths: - workspaces/libnpmdiff/** - branches: - - '*' push: paths: - workspaces/libnpmdiff/** @@ -20,57 +18,46 @@ jobs: steps: # Checkout the npm/cli repo - uses: actions/checkout@v2 - - name: Use Node.js 16.x - uses: actions/setup-node@v2 + - uses: actions/setup-node@v2 with: - node-version: 16.x - cache: npm - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - name: Run linting - run: node ./bin/npm-cli.js run posttest -w workspaces/libnpmdiff - env: - DEPLOY_VERSION: testing + node-version: '16' + - run: npm i --prefer-online -g npm@latest + - run: npm i + - run: npm run lint -w workspaces/libnpmdiff test: strategy: fail-fast: false matrix: - node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x] + node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.13.0, 16.x] platform: - os: ubuntu-latest shell: bash - os: macos-latest shell: bash - os: windows-latest - shell: bash - - os: windows-latest - shell: powershell - + shell: cmd runs-on: ${{ matrix.platform.os }} defaults: run: shell: ${{ matrix.platform.shell }} - steps: - # Checkout the npm/cli repo - - uses: actions/checkout@v2 - - # Installs the specific version of Node.js - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: npm - - # Run the installer script - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - # Run the tests, but not if we're just gonna do coveralls later anyway - - name: Run Tap tests - run: node ./bin/npm-cli.js run -w workspaces/libnpmdiff --ignore-scripts test -- -t600 -Rbase -c + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + # node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows + - name: Update to workable npm (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 + run: npm i --prefer-online --no-fund --no-audit -g npm@latest + - run: npm -v + - run: npm i + - run: npm test --ignore-scripts -w workspaces/libnpmdiff diff --git a/.github/workflows/ci-libnpmexec.yml b/.github/workflows/ci-libnpmexec.yml index 011ae630e..a802c068e 100644 --- a/.github/workflows/ci-libnpmexec.yml +++ b/.github/workflows/ci-libnpmexec.yml @@ -4,8 +4,6 @@ on: pull_request: paths: - workspaces/libnpmexec/** - branches: - - '*' push: paths: - workspaces/libnpmexec/** @@ -20,57 +18,46 @@ jobs: steps: # Checkout the npm/cli repo - uses: actions/checkout@v2 - - name: Use Node.js 16.x - uses: actions/setup-node@v2 + - uses: actions/setup-node@v2 with: - node-version: 16.x - cache: npm - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - name: Run linting - run: node ./bin/npm-cli.js run posttest -w workspaces/libnpmexec - env: - DEPLOY_VERSION: testing + node-version: '16' + - run: npm i --prefer-online -g npm@latest + - run: npm i + - run: npm run lint -w workspaces/libnpmexec test: strategy: fail-fast: false matrix: - node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x] + node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.13.0, 16.x] platform: - os: ubuntu-latest shell: bash - os: macos-latest shell: bash - os: windows-latest - shell: bash - - os: windows-latest - shell: powershell - + shell: cmd runs-on: ${{ matrix.platform.os }} defaults: run: shell: ${{ matrix.platform.shell }} - steps: - # Checkout the npm/cli repo - - uses: actions/checkout@v2 - - # Installs the specific version of Node.js - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: npm - - # Run the installer script - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - # Run the tests, but not if we're just gonna do coveralls later anyway - - name: Run Tap tests - run: node ./bin/npm-cli.js run -w workspaces/libnpmexec --ignore-scripts test -- -t600 -Rbase -c + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + # node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows + - name: Update to workable npm (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 + run: npm i --prefer-online --no-fund --no-audit -g npm@latest + - run: npm -v + - run: npm i + - run: npm test --ignore-scripts -w workspaces/libnpmexec diff --git a/.github/workflows/ci-libnpmfund.yml b/.github/workflows/ci-libnpmfund.yml index 3ce4de532..f00891ddb 100644 --- a/.github/workflows/ci-libnpmfund.yml +++ b/.github/workflows/ci-libnpmfund.yml @@ -4,8 +4,6 @@ on: pull_request: paths: - workspaces/libnpmfund/** - branches: - - '*' push: paths: - workspaces/libnpmfund/** @@ -20,57 +18,46 @@ jobs: steps: # Checkout the npm/cli repo - uses: actions/checkout@v2 - - name: Use Node.js 16.x - uses: actions/setup-node@v2 + - uses: actions/setup-node@v2 with: - node-version: 16.x - cache: npm - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - name: Run linting - run: node ./bin/npm-cli.js run posttest -w workspaces/libnpmfund - env: - DEPLOY_VERSION: testing + node-version: '16' + - run: npm i --prefer-online -g npm@latest + - run: npm i + - run: npm run lint -w workspaces/libnpmfund test: strategy: fail-fast: false matrix: - node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x] + node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.13.0, 16.x] platform: - os: ubuntu-latest shell: bash - os: macos-latest shell: bash - os: windows-latest - shell: bash - - os: windows-latest - shell: powershell - + shell: cmd runs-on: ${{ matrix.platform.os }} defaults: run: shell: ${{ matrix.platform.shell }} - steps: - # Checkout the npm/cli repo - - uses: actions/checkout@v2 - - # Installs the specific version of Node.js - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: npm - - # Run the installer script - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - # Run the tests, but not if we're just gonna do coveralls later anyway - - name: Run Tap tests - run: node ./bin/npm-cli.js run -w workspaces/libnpmfund --ignore-scripts test -- -t600 -Rbase -c + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + # node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows + - name: Update to workable npm (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 + run: npm i --prefer-online --no-fund --no-audit -g npm@latest + - run: npm -v + - run: npm i + - run: npm test --ignore-scripts -w workspaces/libnpmfund diff --git a/.github/workflows/ci-libnpmhook.yml b/.github/workflows/ci-libnpmhook.yml index 1cd823a43..f10badea1 100644 --- a/.github/workflows/ci-libnpmhook.yml +++ b/.github/workflows/ci-libnpmhook.yml @@ -4,8 +4,6 @@ on: pull_request: paths: - workspaces/libnpmhook/** - branches: - - '*' push: paths: - workspaces/libnpmhook/** @@ -20,57 +18,46 @@ jobs: steps: # Checkout the npm/cli repo - uses: actions/checkout@v2 - - name: Use Node.js 16.x - uses: actions/setup-node@v2 + - uses: actions/setup-node@v2 with: - node-version: 16.x - cache: npm - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - name: Run linting - run: node ./bin/npm-cli.js run posttest -w workspaces/libnpmhook - env: - DEPLOY_VERSION: testing + node-version: '16' + - run: npm i --prefer-online -g npm@latest + - run: npm i + - run: npm run lint -w workspaces/libnpmhook test: strategy: fail-fast: false matrix: - node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x] + node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.13.0, 16.x] platform: - os: ubuntu-latest shell: bash - os: macos-latest shell: bash - os: windows-latest - shell: bash - - os: windows-latest - shell: powershell - + shell: cmd runs-on: ${{ matrix.platform.os }} defaults: run: shell: ${{ matrix.platform.shell }} - steps: - # Checkout the npm/cli repo - - uses: actions/checkout@v2 - - # Installs the specific version of Node.js - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: npm - - # Run the installer script - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - # Run the tests, but not if we're just gonna do coveralls later anyway - - name: Run Tap tests - run: node ./bin/npm-cli.js run -w workspaces/libnpmhook --ignore-scripts test -- -t600 -Rbase -c + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + # node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows + - name: Update to workable npm (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 + run: npm i --prefer-online --no-fund --no-audit -g npm@latest + - run: npm -v + - run: npm i + - run: npm test --ignore-scripts -w workspaces/libnpmhook diff --git a/.github/workflows/ci-libnpmorg.yml b/.github/workflows/ci-libnpmorg.yml index e36adeda1..3f43b206f 100644 --- a/.github/workflows/ci-libnpmorg.yml +++ b/.github/workflows/ci-libnpmorg.yml @@ -4,8 +4,6 @@ on: pull_request: paths: - workspaces/libnpmorg/** - branches: - - '*' push: paths: - workspaces/libnpmorg/** @@ -20,57 +18,46 @@ jobs: steps: # Checkout the npm/cli repo - uses: actions/checkout@v2 - - name: Use Node.js 16.x - uses: actions/setup-node@v2 + - uses: actions/setup-node@v2 with: - node-version: 16.x - cache: npm - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - name: Run linting - run: node ./bin/npm-cli.js run posttest -w workspaces/libnpmorg - env: - DEPLOY_VERSION: testing + node-version: '16' + - run: npm i --prefer-online -g npm@latest + - run: npm i + - run: npm run lint -w workspaces/libnpmorg test: strategy: fail-fast: false matrix: - node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x] + node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.13.0, 16.x] platform: - os: ubuntu-latest shell: bash - os: macos-latest shell: bash - os: windows-latest - shell: bash - - os: windows-latest - shell: powershell - + shell: cmd runs-on: ${{ matrix.platform.os }} defaults: run: shell: ${{ matrix.platform.shell }} - steps: - # Checkout the npm/cli repo - - uses: actions/checkout@v2 - - # Installs the specific version of Node.js - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: npm - - # Run the installer script - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - # Run the tests, but not if we're just gonna do coveralls later anyway - - name: Run Tap tests - run: node ./bin/npm-cli.js run -w workspaces/libnpmorg --ignore-scripts test -- -t600 -Rbase -c + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + # node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows + - name: Update to workable npm (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 + run: npm i --prefer-online --no-fund --no-audit -g npm@latest + - run: npm -v + - run: npm i + - run: npm test --ignore-scripts -w workspaces/libnpmorg diff --git a/.github/workflows/ci-libnpmpack.yml b/.github/workflows/ci-libnpmpack.yml index b2f1c3e17..fd29289bc 100644 --- a/.github/workflows/ci-libnpmpack.yml +++ b/.github/workflows/ci-libnpmpack.yml @@ -4,8 +4,6 @@ on: pull_request: paths: - workspaces/libnpmpack/** - branches: - - '*' push: paths: - workspaces/libnpmpack/** @@ -20,57 +18,46 @@ jobs: steps: # Checkout the npm/cli repo - uses: actions/checkout@v2 - - name: Use Node.js 16.x - uses: actions/setup-node@v2 + - uses: actions/setup-node@v2 with: - node-version: 16.x - cache: npm - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - name: Run linting - run: node ./bin/npm-cli.js run posttest -w workspaces/libnpmpack - env: - DEPLOY_VERSION: testing + node-version: '16' + - run: npm i --prefer-online -g npm@latest + - run: npm i + - run: npm run lint -w workspaces/libnpmpack test: strategy: fail-fast: false matrix: - node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x] + node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.13.0, 16.x] platform: - os: ubuntu-latest shell: bash - os: macos-latest shell: bash - os: windows-latest - shell: bash - - os: windows-latest - shell: powershell - + shell: cmd runs-on: ${{ matrix.platform.os }} defaults: run: shell: ${{ matrix.platform.shell }} - steps: - # Checkout the npm/cli repo - - uses: actions/checkout@v2 - - # Installs the specific version of Node.js - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: npm - - # Run the installer script - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - # Run the tests, but not if we're just gonna do coveralls later anyway - - name: Run Tap tests - run: node ./bin/npm-cli.js run -w workspaces/libnpmpack --ignore-scripts test -- -t600 -Rbase -c + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + # node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows + - name: Update to workable npm (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 + run: npm i --prefer-online --no-fund --no-audit -g npm@latest + - run: npm -v + - run: npm i + - run: npm test --ignore-scripts -w workspaces/libnpmpack diff --git a/.github/workflows/ci-libnpmpublish.yml b/.github/workflows/ci-libnpmpublish.yml index 3d26cf8cd..efe1f1918 100644 --- a/.github/workflows/ci-libnpmpublish.yml +++ b/.github/workflows/ci-libnpmpublish.yml @@ -4,8 +4,6 @@ on: pull_request: paths: - workspaces/libnpmpublish/** - branches: - - '*' push: paths: - workspaces/libnpmpublish/** @@ -20,57 +18,46 @@ jobs: steps: # Checkout the npm/cli repo - uses: actions/checkout@v2 - - name: Use Node.js 16.x - uses: actions/setup-node@v2 + - uses: actions/setup-node@v2 with: - node-version: 16.x - cache: npm - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - name: Run linting - run: node ./bin/npm-cli.js run posttest -w workspaces/libnpmpublish - env: - DEPLOY_VERSION: testing + node-version: '16' + - run: npm i --prefer-online -g npm@latest + - run: npm i + - run: npm run lint -w workspaces/libnpmpublish test: strategy: fail-fast: false matrix: - node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x] + node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.13.0, 16.x] platform: - os: ubuntu-latest shell: bash - os: macos-latest shell: bash - os: windows-latest - shell: bash - - os: windows-latest - shell: powershell - + shell: cmd runs-on: ${{ matrix.platform.os }} defaults: run: shell: ${{ matrix.platform.shell }} - steps: - # Checkout the npm/cli repo - - uses: actions/checkout@v2 - - # Installs the specific version of Node.js - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: npm - - # Run the installer script - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - # Run the tests, but not if we're just gonna do coveralls later anyway - - name: Run Tap tests - run: node ./bin/npm-cli.js run -w workspaces/libnpmpublish --ignore-scripts test -- -t600 -Rbase -c + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + # node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows + - name: Update to workable npm (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 + run: npm i --prefer-online --no-fund --no-audit -g npm@latest + - run: npm -v + - run: npm i + - run: npm test --ignore-scripts -w workspaces/libnpmpublish diff --git a/.github/workflows/ci-libnpmsearch.yml b/.github/workflows/ci-libnpmsearch.yml index 08c45451d..832f850d3 100644 --- a/.github/workflows/ci-libnpmsearch.yml +++ b/.github/workflows/ci-libnpmsearch.yml @@ -4,8 +4,6 @@ on: pull_request: paths: - workspaces/libnpmsearch/** - branches: - - '*' push: paths: - workspaces/libnpmsearch/** @@ -20,57 +18,46 @@ jobs: steps: # Checkout the npm/cli repo - uses: actions/checkout@v2 - - name: Use Node.js 16.x - uses: actions/setup-node@v2 + - uses: actions/setup-node@v2 with: - node-version: 16.x - cache: npm - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - name: Run linting - run: node ./bin/npm-cli.js run posttest -w workspaces/libnpmsearch - env: - DEPLOY_VERSION: testing + node-version: '16' + - run: npm i --prefer-online -g npm@latest + - run: npm i + - run: npm run lint -w workspaces/libnpmsearch test: strategy: fail-fast: false matrix: - node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x] + node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.13.0, 16.x] platform: - os: ubuntu-latest shell: bash - os: macos-latest shell: bash - os: windows-latest - shell: bash - - os: windows-latest - shell: powershell - + shell: cmd runs-on: ${{ matrix.platform.os }} defaults: run: shell: ${{ matrix.platform.shell }} - steps: - # Checkout the npm/cli repo - - uses: actions/checkout@v2 - - # Installs the specific version of Node.js - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: npm - - # Run the installer script - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - # Run the tests, but not if we're just gonna do coveralls later anyway - - name: Run Tap tests - run: node ./bin/npm-cli.js run -w workspaces/libnpmsearch --ignore-scripts test -- -t600 -Rbase -c + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + # node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows + - name: Update to workable npm (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 + run: npm i --prefer-online --no-fund --no-audit -g npm@latest + - run: npm -v + - run: npm i + - run: npm test --ignore-scripts -w workspaces/libnpmsearch diff --git a/.github/workflows/ci-libnpmteam.yml b/.github/workflows/ci-libnpmteam.yml index 18a37df8c..fa6c5929e 100644 --- a/.github/workflows/ci-libnpmteam.yml +++ b/.github/workflows/ci-libnpmteam.yml @@ -4,8 +4,6 @@ on: pull_request: paths: - workspaces/libnpmteam/** - branches: - - '*' push: paths: - workspaces/libnpmteam/** @@ -20,57 +18,46 @@ jobs: steps: # Checkout the npm/cli repo - uses: actions/checkout@v2 - - name: Use Node.js 16.x - uses: actions/setup-node@v2 + - uses: actions/setup-node@v2 with: - node-version: 16.x - cache: npm - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - name: Run linting - run: node ./bin/npm-cli.js run posttest -w workspaces/libnpmteam - env: - DEPLOY_VERSION: testing + node-version: '16' + - run: npm i --prefer-online -g npm@latest + - run: npm i + - run: npm run lint -w workspaces/libnpmteam test: strategy: fail-fast: false matrix: - node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x] + node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.13.0, 16.x] platform: - os: ubuntu-latest shell: bash - os: macos-latest shell: bash - os: windows-latest - shell: bash - - os: windows-latest - shell: powershell - + shell: cmd runs-on: ${{ matrix.platform.os }} defaults: run: shell: ${{ matrix.platform.shell }} - steps: - # Checkout the npm/cli repo - - uses: actions/checkout@v2 - - # Installs the specific version of Node.js - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: npm - - # Run the installer script - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - # Run the tests, but not if we're just gonna do coveralls later anyway - - name: Run Tap tests - run: node ./bin/npm-cli.js run -w workspaces/libnpmteam --ignore-scripts test -- -t600 -Rbase -c + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + # node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows + - name: Update to workable npm (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 + run: npm i --prefer-online --no-fund --no-audit -g npm@latest + - run: npm -v + - run: npm i + - run: npm test --ignore-scripts -w workspaces/libnpmteam diff --git a/.github/workflows/ci-libnpmversion.yml b/.github/workflows/ci-libnpmversion.yml index 5b4719d8b..0b0c0fcf7 100644 --- a/.github/workflows/ci-libnpmversion.yml +++ b/.github/workflows/ci-libnpmversion.yml @@ -4,8 +4,6 @@ on: pull_request: paths: - workspaces/libnpmversion/** - branches: - - '*' push: paths: - workspaces/libnpmversion/** @@ -20,57 +18,46 @@ jobs: steps: # Checkout the npm/cli repo - uses: actions/checkout@v2 - - name: Use Node.js 16.x - uses: actions/setup-node@v2 + - uses: actions/setup-node@v2 with: - node-version: 16.x - cache: npm - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - name: Run linting - run: node ./bin/npm-cli.js run posttest -w workspaces/libnpmversion - env: - DEPLOY_VERSION: testing + node-version: '16' + - run: npm i --prefer-online -g npm@latest + - run: npm i + - run: npm run lint -w workspaces/libnpmversion test: strategy: fail-fast: false matrix: - node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x] + node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.13.0, 16.x] platform: - os: ubuntu-latest shell: bash - os: macos-latest shell: bash - os: windows-latest - shell: bash - - os: windows-latest - shell: powershell - + shell: cmd runs-on: ${{ matrix.platform.os }} defaults: run: shell: ${{ matrix.platform.shell }} - steps: - # Checkout the npm/cli repo - - uses: actions/checkout@v2 - - # Installs the specific version of Node.js - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: npm - - # Run the installer script - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - # Run the tests, but not if we're just gonna do coveralls later anyway - - name: Run Tap tests - run: node ./bin/npm-cli.js run -w workspaces/libnpmversion --ignore-scripts test -- -t600 -Rbase -c + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + # node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows + - name: Update to workable npm (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 + run: npm i --prefer-online --no-fund --no-audit -g npm@latest + - run: npm -v + - run: npm i + - run: npm test --ignore-scripts -w workspaces/libnpmversion diff --git a/.github/workflows/ci-npmcli-arborist.yml b/.github/workflows/ci-npmcli-arborist.yml index d0cfbe00a..c2fe8ca1d 100644 --- a/.github/workflows/ci-npmcli-arborist.yml +++ b/.github/workflows/ci-npmcli-arborist.yml @@ -4,8 +4,6 @@ on: pull_request: paths: - workspaces/arborist/** - branches: - - '*' push: paths: - workspaces/arborist/** @@ -20,57 +18,46 @@ jobs: steps: # Checkout the npm/cli repo - uses: actions/checkout@v2 - - name: Use Node.js 16.x - uses: actions/setup-node@v2 + - uses: actions/setup-node@v2 with: - node-version: 16.x - cache: npm - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - name: Run linting - run: node ./bin/npm-cli.js run posttest -w workspaces/arborist - env: - DEPLOY_VERSION: testing + node-version: '16' + - run: npm i --prefer-online -g npm@latest + - run: npm i + - run: npm run lint -w workspaces/arborist test: strategy: fail-fast: false matrix: - node-version: ['12.13.0', 12.x, '14.15.0', 14.x, '16.0.0', 16.x] + node-version: [12.13.0, 12.x, 14.15.0, 14.x, 16.13.0, 16.x] platform: - os: ubuntu-latest shell: bash - os: macos-latest shell: bash - os: windows-latest - shell: bash - - os: windows-latest - shell: powershell - + shell: cmd runs-on: ${{ matrix.platform.os }} defaults: run: shell: ${{ matrix.platform.shell }} - steps: - # Checkout the npm/cli repo - - uses: actions/checkout@v2 - - # Installs the specific version of Node.js - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 - with: - node-version: ${{ matrix.node-version }} - cache: npm - - # Run the installer script - - name: Install dependencies - run: | - node ./bin/npm-cli.js install --ignore-scripts --no-audit - node ./bin/npm-cli.js rebuild - - # Run the tests, but not if we're just gonna do coveralls later anyway - - name: Run Tap tests - run: node ./bin/npm-cli.js run -w workspaces/arborist --ignore-scripts test -- -t600 -Rbase -c + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: ${{ matrix.node-version }} + # node 12 and 14 ship with npm@6, which is known to fail when updating itself in windows + - name: Update to workable npm (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 + run: npm i --prefer-online --no-fund --no-audit -g npm@latest + - run: npm -v + - run: npm i + - run: npm test --ignore-scripts -w workspaces/arborist diff --git a/.github/workflows/release-please-libnpmaccess.yml b/.github/workflows/release-please-libnpmaccess.yml new file mode 100644 index 000000000..564c71d82 --- /dev/null +++ b/.github/workflows/release-please-libnpmaccess.yml @@ -0,0 +1,29 @@ +# This file is automatically added by @npmcli/template-oss. Do not edit. + +name: Node Workspace Release Please libnpmaccess + +on: + push: + paths: + - workspaces/libnpmaccess/** + branches: + - release-next + - latest + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v2 + id: release + with: + release-type: node + monorepo-tags: true + path: workspaces/libnpmaccess/** + # If you change changelog-types be sure to also update commitlintrc.js + changelog-types: > + [{"type":"feat","section":"Features","hidden":false}, + {"type":"fix","section":"Bug Fixes","hidden":false}, + {"type":"docs","section":"Documentation","hidden":false}, + {"type":"deps","section":"Dependencies","hidden":false}, + {"type":"chore","hidden":true}] diff --git a/.github/workflows/release-please-libnpmdiff.yml b/.github/workflows/release-please-libnpmdiff.yml new file mode 100644 index 000000000..f1b1d2a6d --- /dev/null +++ b/.github/workflows/release-please-libnpmdiff.yml @@ -0,0 +1,29 @@ +# This file is automatically added by @npmcli/template-oss. Do not edit. + +name: Node Workspace Release Please libnpmdiff + +on: + push: + paths: + - workspaces/libnpmdiff/** + branches: + - release-next + - latest + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v2 + id: release + with: + release-type: node + monorepo-tags: true + path: workspaces/libnpmdiff/** + # If you change changelog-types be sure to also update commitlintrc.js + changelog-types: > + [{"type":"feat","section":"Features","hidden":false}, + {"type":"fix","section":"Bug Fixes","hidden":false}, + {"type":"docs","section":"Documentation","hidden":false}, + {"type":"deps","section":"Dependencies","hidden":false}, + {"type":"chore","hidden":true}] diff --git a/.github/workflows/release-please-libnpmexec.yml b/.github/workflows/release-please-libnpmexec.yml new file mode 100644 index 000000000..31818b73a --- /dev/null +++ b/.github/workflows/release-please-libnpmexec.yml @@ -0,0 +1,29 @@ +# This file is automatically added by @npmcli/template-oss. Do not edit. + +name: Node Workspace Release Please libnpmexec + +on: + push: + paths: + - workspaces/libnpmexec/** + branches: + - release-next + - latest + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v2 + id: release + with: + release-type: node + monorepo-tags: true + path: workspaces/libnpmexec/** + # If you change changelog-types be sure to also update commitlintrc.js + changelog-types: > + [{"type":"feat","section":"Features","hidden":false}, + {"type":"fix","section":"Bug Fixes","hidden":false}, + {"type":"docs","section":"Documentation","hidden":false}, + {"type":"deps","section":"Dependencies","hidden":false}, + {"type":"chore","hidden":true}] diff --git a/.github/workflows/release-please-libnpmfund.yml b/.github/workflows/release-please-libnpmfund.yml new file mode 100644 index 000000000..6bde4c016 --- /dev/null +++ b/.github/workflows/release-please-libnpmfund.yml @@ -0,0 +1,29 @@ +# This file is automatically added by @npmcli/template-oss. Do not edit. + +name: Node Workspace Release Please libnpmfund + +on: + push: + paths: + - workspaces/libnpmfund/** + branches: + - release-next + - latest + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v2 + id: release + with: + release-type: node + monorepo-tags: true + path: workspaces/libnpmfund/** + # If you change changelog-types be sure to also update commitlintrc.js + changelog-types: > + [{"type":"feat","section":"Features","hidden":false}, + {"type":"fix","section":"Bug Fixes","hidden":false}, + {"type":"docs","section":"Documentation","hidden":false}, + {"type":"deps","section":"Dependencies","hidden":false}, + {"type":"chore","hidden":true}] diff --git a/.github/workflows/release-please-libnpmhook.yml b/.github/workflows/release-please-libnpmhook.yml new file mode 100644 index 000000000..6b8b86403 --- /dev/null +++ b/.github/workflows/release-please-libnpmhook.yml @@ -0,0 +1,29 @@ +# This file is automatically added by @npmcli/template-oss. Do not edit. + +name: Node Workspace Release Please libnpmhook + +on: + push: + paths: + - workspaces/libnpmhook/** + branches: + - release-next + - latest + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v2 + id: release + with: + release-type: node + monorepo-tags: true + path: workspaces/libnpmhook/** + # If you change changelog-types be sure to also update commitlintrc.js + changelog-types: > + [{"type":"feat","section":"Features","hidden":false}, + {"type":"fix","section":"Bug Fixes","hidden":false}, + {"type":"docs","section":"Documentation","hidden":false}, + {"type":"deps","section":"Dependencies","hidden":false}, + {"type":"chore","hidden":true}] diff --git a/.github/workflows/release-please-libnpmorg.yml b/.github/workflows/release-please-libnpmorg.yml new file mode 100644 index 000000000..d2a757fb3 --- /dev/null +++ b/.github/workflows/release-please-libnpmorg.yml @@ -0,0 +1,29 @@ +# This file is automatically added by @npmcli/template-oss. Do not edit. + +name: Node Workspace Release Please libnpmorg + +on: + push: + paths: + - workspaces/libnpmorg/** + branches: + - release-next + - latest + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v2 + id: release + with: + release-type: node + monorepo-tags: true + path: workspaces/libnpmorg/** + # If you change changelog-types be sure to also update commitlintrc.js + changelog-types: > + [{"type":"feat","section":"Features","hidden":false}, + {"type":"fix","section":"Bug Fixes","hidden":false}, + {"type":"docs","section":"Documentation","hidden":false}, + {"type":"deps","section":"Dependencies","hidden":false}, + {"type":"chore","hidden":true}] diff --git a/.github/workflows/release-please-libnpmpack.yml b/.github/workflows/release-please-libnpmpack.yml new file mode 100644 index 000000000..881b39809 --- /dev/null +++ b/.github/workflows/release-please-libnpmpack.yml @@ -0,0 +1,29 @@ +# This file is automatically added by @npmcli/template-oss. Do not edit. + +name: Node Workspace Release Please libnpmpack + +on: + push: + paths: + - workspaces/libnpmpack/** + branches: + - release-next + - latest + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v2 + id: release + with: + release-type: node + monorepo-tags: true + path: workspaces/libnpmpack/** + # If you change changelog-types be sure to also update commitlintrc.js + changelog-types: > + [{"type":"feat","section":"Features","hidden":false}, + {"type":"fix","section":"Bug Fixes","hidden":false}, + {"type":"docs","section":"Documentation","hidden":false}, + {"type":"deps","section":"Dependencies","hidden":false}, + {"type":"chore","hidden":true}] diff --git a/.github/workflows/release-please-libnpmpublish.yml b/.github/workflows/release-please-libnpmpublish.yml new file mode 100644 index 000000000..c6763f199 --- /dev/null +++ b/.github/workflows/release-please-libnpmpublish.yml @@ -0,0 +1,29 @@ +# This file is automatically added by @npmcli/template-oss. Do not edit. + +name: Node Workspace Release Please libnpmpublish + +on: + push: + paths: + - workspaces/libnpmpublish/** + branches: + - release-next + - latest + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v2 + id: release + with: + release-type: node + monorepo-tags: true + path: workspaces/libnpmpublish/** + # If you change changelog-types be sure to also update commitlintrc.js + changelog-types: > + [{"type":"feat","section":"Features","hidden":false}, + {"type":"fix","section":"Bug Fixes","hidden":false}, + {"type":"docs","section":"Documentation","hidden":false}, + {"type":"deps","section":"Dependencies","hidden":false}, + {"type":"chore","hidden":true}] diff --git a/.github/workflows/release-please-libnpmsearch.yml b/.github/workflows/release-please-libnpmsearch.yml new file mode 100644 index 000000000..d004ddcd8 --- /dev/null +++ b/.github/workflows/release-please-libnpmsearch.yml @@ -0,0 +1,29 @@ +# This file is automatically added by @npmcli/template-oss. Do not edit. + +name: Node Workspace Release Please libnpmsearch + +on: + push: + paths: + - workspaces/libnpmsearch/** + branches: + - release-next + - latest + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v2 + id: release + with: + release-type: node + monorepo-tags: true + path: workspaces/libnpmsearch/** + # If you change changelog-types be sure to also update commitlintrc.js + changelog-types: > + [{"type":"feat","section":"Features","hidden":false}, + {"type":"fix","section":"Bug Fixes","hidden":false}, + {"type":"docs","section":"Documentation","hidden":false}, + {"type":"deps","section":"Dependencies","hidden":false}, + {"type":"chore","hidden":true}] diff --git a/.github/workflows/release-please-libnpmteam.yml b/.github/workflows/release-please-libnpmteam.yml new file mode 100644 index 000000000..b4df17025 --- /dev/null +++ b/.github/workflows/release-please-libnpmteam.yml @@ -0,0 +1,29 @@ +# This file is automatically added by @npmcli/template-oss. Do not edit. + +name: Node Workspace Release Please libnpmteam + +on: + push: + paths: + - workspaces/libnpmteam/** + branches: + - release-next + - latest + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v2 + id: release + with: + release-type: node + monorepo-tags: true + path: workspaces/libnpmteam/** + # If you change changelog-types be sure to also update commitlintrc.js + changelog-types: > + [{"type":"feat","section":"Features","hidden":false}, + {"type":"fix","section":"Bug Fixes","hidden":false}, + {"type":"docs","section":"Documentation","hidden":false}, + {"type":"deps","section":"Dependencies","hidden":false}, + {"type":"chore","hidden":true}] diff --git a/.github/workflows/release-please-libnpmversion.yml b/.github/workflows/release-please-libnpmversion.yml new file mode 100644 index 000000000..bddb62d6a --- /dev/null +++ b/.github/workflows/release-please-libnpmversion.yml @@ -0,0 +1,29 @@ +# This file is automatically added by @npmcli/template-oss. Do not edit. + +name: Node Workspace Release Please libnpmversion + +on: + push: + paths: + - workspaces/libnpmversion/** + branches: + - release-next + - latest + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v2 + id: release + with: + release-type: node + monorepo-tags: true + path: workspaces/libnpmversion/** + # If you change changelog-types be sure to also update commitlintrc.js + changelog-types: > + [{"type":"feat","section":"Features","hidden":false}, + {"type":"fix","section":"Bug Fixes","hidden":false}, + {"type":"docs","section":"Documentation","hidden":false}, + {"type":"deps","section":"Dependencies","hidden":false}, + {"type":"chore","hidden":true}] diff --git a/.github/workflows/release-please-npmcli-arborist.yml b/.github/workflows/release-please-npmcli-arborist.yml new file mode 100644 index 000000000..47ee0c866 --- /dev/null +++ b/.github/workflows/release-please-npmcli-arborist.yml @@ -0,0 +1,29 @@ +# This file is automatically added by @npmcli/template-oss. Do not edit. + +name: Node Workspace Release Please @npmcli/arborist + +on: + push: + paths: + - workspaces/arborist/** + branches: + - release-next + - latest + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v2 + id: release + with: + release-type: node + monorepo-tags: true + path: workspaces/arborist/** + # If you change changelog-types be sure to also update commitlintrc.js + changelog-types: > + [{"type":"feat","section":"Features","hidden":false}, + {"type":"fix","section":"Bug Fixes","hidden":false}, + {"type":"docs","section":"Documentation","hidden":false}, + {"type":"deps","section":"Dependencies","hidden":false}, + {"type":"chore","hidden":true}] diff --git a/node_modules/@gar/promisify/LICENSE.md b/node_modules/@gar/promisify/LICENSE.md new file mode 100644 index 000000000..64f773240 --- /dev/null +++ b/node_modules/@gar/promisify/LICENSE.md @@ -0,0 +1,10 @@ +The MIT License (MIT) + +Copyright © 2020-2022 Michael Garvin + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + diff --git a/node_modules/@gar/promisify/package.json b/node_modules/@gar/promisify/package.json index b5140876c..d0ce69b2f 100644 --- a/node_modules/@gar/promisify/package.json +++ b/node_modules/@gar/promisify/package.json @@ -1,6 +1,6 @@ { "name": "@gar/promisify", - "version": "1.1.2", + "version": "1.1.3", "description": "Promisify an entire class or object", "main": "index.js", "repository": { diff --git a/package-lock.json b/package-lock.json index 12eb3ad93..d7b384a9b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -164,7 +164,7 @@ }, "devDependencies": { "@npmcli/eslint-config": "^2.0.0", - "@npmcli/template-oss": "^2.4.3", + "@npmcli/template-oss": "^2.9.1", "eslint": "^8.3.0", "licensee": "^8.2.0", "spawk": "^1.7.1", @@ -625,9 +625,9 @@ } }, "node_modules/@gar/promisify": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.2.tgz", - "integrity": "sha512-82cpyJyKRoQoRi+14ibCeGPu0CwypgtBAdBhq1WfvagpCZNKqwXbKwXllYSMG91DhmG4jt9gN8eP6lGOtozuaw==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz", + "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==", "inBundle": true }, "node_modules/@humanwhocodes/config-array": { @@ -1030,20 +1030,21 @@ } }, "node_modules/@npmcli/template-oss": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/@npmcli/template-oss/-/template-oss-2.4.3.tgz", - "integrity": "sha512-y+efKAT2WTw3c7ShDxpF9HOPH3XmruO0TPJlJrxMaJ7yPZ/vrrRcGCP00gOr4QHVFtbmfXVMU+kuVIkkKJt7xg==", + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/@npmcli/template-oss/-/template-oss-2.9.1.tgz", + "integrity": "sha512-cngaFvSSN7YveXW3jm5Q8t34ayUJnZci0D+dBjN/IcYCpj9nkXh8kfFx1TE5LNQX3YZeo6e8jZIDvMchV+iPRQ==", "dev": true, "hasInstallScript": true, "dependencies": { - "@npmcli/fs": "^1.0.0", - "@npmcli/map-workspaces": "^2.0.0", + "@npmcli/fs": "^2.0.1", + "@npmcli/map-workspaces": "^2.0.1", "@npmcli/package-json": "^1.0.1", "json-parse-even-better-errors": "^2.3.1", "which": "^2.0.2" }, "bin": { - "npm-template-check": "bin/npm-template-check.js" + "npm-template-check": "bin/npm-template-check.js", + "npm-template-copy": "bin/postinstall.js" }, "engines": { "node": "^12.13.0 || ^14.15.0 || >=16" @@ -1053,6 +1054,19 @@ "tap": "^15.0.9" } }, + "node_modules/@npmcli/template-oss/node_modules/@npmcli/fs": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-2.0.1.tgz", + "integrity": "sha512-vlaJ+kcURCo0SK1afdX5BQ9hgbXDKhpOxdIOg3jvn7wnKp8NcSDjvYc490VuJn2ciOgAFXV9qZzZPgHlcpXkxA==", + "dev": true, + "dependencies": { + "@gar/promisify": "^1.1.3", + "semver": "^7.3.5" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16" + } + }, "node_modules/@tootallnate/once": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-2.0.0.tgz", @@ -11147,9 +11161,9 @@ } }, "@gar/promisify": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.2.tgz", - "integrity": "sha512-82cpyJyKRoQoRi+14ibCeGPu0CwypgtBAdBhq1WfvagpCZNKqwXbKwXllYSMG91DhmG4jt9gN8eP6lGOtozuaw==" + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz", + "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==" }, "@humanwhocodes/config-array": { "version": "0.6.0", @@ -11507,16 +11521,28 @@ } }, "@npmcli/template-oss": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/@npmcli/template-oss/-/template-oss-2.4.3.tgz", - "integrity": "sha512-y+efKAT2WTw3c7ShDxpF9HOPH3XmruO0TPJlJrxMaJ7yPZ/vrrRcGCP00gOr4QHVFtbmfXVMU+kuVIkkKJt7xg==", + "version": "2.9.1", + "resolved": "https://registry.npmjs.org/@npmcli/template-oss/-/template-oss-2.9.1.tgz", + "integrity": "sha512-cngaFvSSN7YveXW3jm5Q8t34ayUJnZci0D+dBjN/IcYCpj9nkXh8kfFx1TE5LNQX3YZeo6e8jZIDvMchV+iPRQ==", "dev": true, "requires": { - "@npmcli/fs": "^1.0.0", - "@npmcli/map-workspaces": "^2.0.0", + "@npmcli/fs": "^2.0.1", + "@npmcli/map-workspaces": "^2.0.1", "@npmcli/package-json": "^1.0.1", "json-parse-even-better-errors": "^2.3.1", "which": "^2.0.2" + }, + "dependencies": { + "@npmcli/fs": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-2.0.1.tgz", + "integrity": "sha512-vlaJ+kcURCo0SK1afdX5BQ9hgbXDKhpOxdIOg3jvn7wnKp8NcSDjvYc490VuJn2ciOgAFXV9qZzZPgHlcpXkxA==", + "dev": true, + "requires": { + "@gar/promisify": "^1.1.3", + "semver": "^7.3.5" + } + } } }, "@tootallnate/once": { diff --git a/package.json b/package.json index f6fe8da80..5e72cb5f6 100644 --- a/package.json +++ b/package.json @@ -201,7 +201,7 @@ ], "devDependencies": { "@npmcli/eslint-config": "^2.0.0", - "@npmcli/template-oss": "^2.4.3", + "@npmcli/template-oss": "^2.9.1", "eslint": "^8.3.0", "licensee": "^8.2.0", "spawk": "^1.7.1", @@ -255,7 +255,7 @@ "libnpmteam", "libnpmversion" ], - "version": "2.4.3" + "version": "2.9.1" }, "license": "Artistic-2.0", "engines": { diff --git a/workspaces/arborist/package.json b/workspaces/arborist/package.json index 520c45748..7a70ceca6 100644 --- a/workspaces/arborist/package.json +++ b/workspaces/arborist/package.json @@ -62,7 +62,8 @@ "benchmark": "node scripts/benchmark.js", "benchclean": "rm -rf scripts/benchmark/*/", "npmclilint": "npmcli-lint", - "postlint": "npm-template-check" + "postlint": "npm-template-check", + "template-copy": "npm-template-copy --force" }, "repository": { "type": "git", @@ -101,6 +102,6 @@ "!test/fixtures/*.js" ], "templateOSS": { - "version": "2.4.3" + "version": "2.9.1" } } diff --git a/workspaces/libnpmaccess/package.json b/workspaces/libnpmaccess/package.json index 33085ffd7..67b86cd4a 100644 --- a/workspaces/libnpmaccess/package.json +++ b/workspaces/libnpmaccess/package.json @@ -15,7 +15,8 @@ "lintfix": "npm run lint -- --fix", "prepublishOnly": "git push origin --follow-tags", "snap": "tap", - "posttest": "npm run lint" + "posttest": "npm run lint", + "template-copy": "npm-template-copy --force" }, "devDependencies": { "@npmcli/template-oss": "^2.4.2", @@ -45,6 +46,6 @@ "lib" ], "templateOSS": { - "version": "2.4.3" + "version": "2.9.1" } } diff --git a/workspaces/libnpmdiff/package.json b/workspaces/libnpmdiff/package.json index fbfc1eaf9..282a8387a 100644 --- a/workspaces/libnpmdiff/package.json +++ b/workspaces/libnpmdiff/package.json @@ -37,7 +37,8 @@ "preversion": "npm test", "postversion": "npm publish", "prepublishOnly": "git push origin --follow-tags", - "postlint": "npm-template-check" + "postlint": "npm-template-check", + "template-copy": "npm-template-copy --force" }, "tap": { "check-coverage": true @@ -58,6 +59,6 @@ "tar": "^6.1.0" }, "templateOSS": { - "version": "2.4.3" + "version": "2.9.1" } } diff --git a/workspaces/libnpmexec/package.json b/workspaces/libnpmexec/package.json index 9ce05bf96..45f1218ac 100644 --- a/workspaces/libnpmexec/package.json +++ b/workspaces/libnpmexec/package.json @@ -37,7 +37,8 @@ "postversion": "npm publish", "prepublishOnly": "git push origin --follow-tags", "postlint": "npm-template-check", - "lintfix": "npm run lint -- --fix" + "lintfix": "npm run lint -- --fix", + "template-copy": "npm-template-copy --force" }, "tap": { "color": true, @@ -64,6 +65,6 @@ "walk-up-path": "^1.0.0" }, "templateOSS": { - "version": "2.4.3" + "version": "2.9.1" } } diff --git a/workspaces/libnpmfund/package.json b/workspaces/libnpmfund/package.json index eae757f04..277a0a2df 100644 --- a/workspaces/libnpmfund/package.json +++ b/workspaces/libnpmfund/package.json @@ -36,7 +36,8 @@ "preversion": "npm test", "postversion": "npm publish", "prepublishOnly": "git push origin --follow-tags", - "postlint": "npm-template-check" + "postlint": "npm-template-check", + "template-copy": "npm-template-copy --force" }, "tap": { "check-coverage": true @@ -52,6 +53,6 @@ "node": "^12.13.0 || ^14.15.0 || >=16" }, "templateOSS": { - "version": "2.4.3" + "version": "2.9.1" } } diff --git a/workspaces/libnpmhook/package.json b/workspaces/libnpmhook/package.json index 8b749d180..1038249e3 100644 --- a/workspaces/libnpmhook/package.json +++ b/workspaces/libnpmhook/package.json @@ -18,7 +18,8 @@ "postversion": "npm publish", "prepublishOnly": "git push origin --follow-tags", "snap": "tap", - "posttest": "npm run lint" + "posttest": "npm run lint", + "template-copy": "npm-template-copy --force" }, "tap": { "check-coverage": true @@ -45,6 +46,6 @@ "node": "^12.13.0 || ^14.15.0 || >=16" }, "templateOSS": { - "version": "2.4.3" + "version": "2.9.1" } } diff --git a/workspaces/libnpmorg/package.json b/workspaces/libnpmorg/package.json index 913030066..3c70819a9 100644 --- a/workspaces/libnpmorg/package.json +++ b/workspaces/libnpmorg/package.json @@ -22,7 +22,8 @@ "posttest": "npm run lint", "postlint": "npm-template-check", "lintfix": "npm run lint -- --fix", - "snap": "tap" + "snap": "tap", + "template-copy": "npm-template-copy --force" }, "files": [ "bin", @@ -51,6 +52,6 @@ "node": "^12.13.0 || ^14.15.0 || >=16" }, "templateOSS": { - "version": "2.4.3" + "version": "2.9.1" } } diff --git a/workspaces/libnpmpack/package.json b/workspaces/libnpmpack/package.json index 579b4efa2..330ed50a1 100644 --- a/workspaces/libnpmpack/package.json +++ b/workspaces/libnpmpack/package.json @@ -21,7 +21,8 @@ "posttest": "npm run lint", "postlint": "npm-template-check", "lintfix": "npm run lint -- --fix", - "snap": "tap" + "snap": "tap", + "template-copy": "npm-template-copy --force" }, "tap": { "check-coverage": true @@ -46,6 +47,6 @@ "node": "^12.13.0 || ^14.15.0 || >=16" }, "templateOSS": { - "version": "2.4.3" + "version": "2.9.1" } } diff --git a/workspaces/libnpmpublish/package.json b/workspaces/libnpmpublish/package.json index 2e15c08f1..0b8f9d9fe 100644 --- a/workspaces/libnpmpublish/package.json +++ b/workspaces/libnpmpublish/package.json @@ -23,7 +23,8 @@ "test": "tap", "posttest": "npm run lint", "postlint": "npm-template-check", - "snap": "tap" + "snap": "tap", + "template-copy": "npm-template-copy --force" }, "tap": { "check-coverage": true @@ -52,6 +53,6 @@ "node": "^12.13.0 || ^14.15.0 || >=16" }, "templateOSS": { - "version": "2.4.3" + "version": "2.9.1" } } diff --git a/workspaces/libnpmsearch/package.json b/workspaces/libnpmsearch/package.json index ba296930c..695e90ffa 100644 --- a/workspaces/libnpmsearch/package.json +++ b/workspaces/libnpmsearch/package.json @@ -24,7 +24,8 @@ "lint": "eslint '**/*.js'", "postlint": "npm-template-check", "lintfix": "npm run lint -- --fix", - "snap": "tap" + "snap": "tap", + "template-copy": "npm-template-copy --force" }, "tap": { "check-coverage": true @@ -47,6 +48,6 @@ "node": "^12.13.0 || ^14.15.0 || >=16" }, "templateOSS": { - "version": "2.4.3" + "version": "2.9.1" } } diff --git a/workspaces/libnpmteam/package.json b/workspaces/libnpmteam/package.json index 1c4633acc..5bb173a1f 100644 --- a/workspaces/libnpmteam/package.json +++ b/workspaces/libnpmteam/package.json @@ -14,7 +14,8 @@ "posttest": "npm run lint", "postlint": "npm-template-check", "lintfix": "npm run lint -- --fix", - "snap": "tap" + "snap": "tap", + "template-copy": "npm-template-copy --force" }, "devDependencies": { "@npmcli/template-oss": "^2.4.2", @@ -41,6 +42,6 @@ "check-coverage": true }, "templateOSS": { - "version": "2.4.3" + "version": "2.9.1" } } diff --git a/workspaces/libnpmversion/package.json b/workspaces/libnpmversion/package.json index e0f5097a3..161f99d41 100644 --- a/workspaces/libnpmversion/package.json +++ b/workspaces/libnpmversion/package.json @@ -22,7 +22,8 @@ "postversion": "npm publish", "prepublishOnly": "git push origin --follow-tags", "postlint": "npm-template-check", - "lintfix": "npm run lint -- --fix" + "lintfix": "npm run lint -- --fix", + "template-copy": "npm-template-copy --force" }, "tap": { "coverage-map": "map.js", @@ -45,6 +46,6 @@ "node": "^12.13.0 || ^14.15.0 || >=16" }, "templateOSS": { - "version": "2.4.3" + "version": "2.9.1" } } |