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:
authorLuke Karrys <luke@lukekarrys.com>2022-09-22 04:34:35 +0300
committerGitHub <noreply@github.com>2022-09-22 04:34:35 +0300
commit9e05ecde86e5d760f0dd930c0d6b80576928780d (patch)
tree9f48e3de33b1a102e7cf44a584c4fdddfafb4e81
parent2d756cbb05125dcb769f2ca4c1687e42568d5882 (diff)
chore(ci): use globally installed npm executable (#5555)
-rw-r--r--.github/workflows/ci-release.yml9
-rw-r--r--docs/package.json3
-rw-r--r--package-lock.json2
-rw-r--r--scripts/template-oss/ci-release.yml9
4 files changed, 15 insertions, 8 deletions
diff --git a/.github/workflows/ci-release.yml b/.github/workflows/ci-release.yml
index 3aa582dbc..e818fc6b4 100644
--- a/.github/workflows/ci-release.yml
+++ b/.github/workflows/ci-release.yml
@@ -202,14 +202,17 @@ jobs:
node . version $NPM_VERSION --ignore-scripts
node . run resetdeps
git clean -fd
- node . ls --production >/dev/null
- node . prune --production --no-save --no-audit --no-fund
+ node . ls --omit=dev >/dev/null
+ node . prune --omit=dev --no-save --no-audit --no-fund
node scripts/git-dirty.js
node . pack --pack-destination=$RUNNER_TEMP
node . install -g $RUNNER_TEMP/npm-$NPM_VERSION.tgz
node . install -w smoke-tests --ignore-scripts --no-audit --no-fund
rm -rf {lib,bin,index.js}
- SMOKE_PUBLISH_NPM=1 node . test -w smoke-tests --ignore-scripts
+ # this one should be npm since we explicitly installed our packed
+ # tarball globally and the next test will make sure our the new
+ # globally installed version contains the git sha
+ SMOKE_PUBLISH_NPM=1 npm test -w smoke-tests --ignore-scripts
- name: Conclude Check
uses: LouisBrunner/checks-action@v1.3.1
if: always()
diff --git a/docs/package.json b/docs/package.json
index 768c7318e..1ea9f668d 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -39,7 +39,7 @@
"nav.yml"
],
"engines": {
- "node": ">=18.0.0"
+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
},
"tap": {
"statements": 81,
@@ -63,6 +63,7 @@
"/nav.yml"
],
"ciVersions": "latest",
+ "engines": "^14.17.0 || ^16.13.0 || >=18.0.0",
"version": "4.3.2",
"content": "../scripts/template-oss/index.js"
}
diff --git a/package-lock.json b/package-lock.json
index 069cf6dc0..36a2761bc 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -199,7 +199,7 @@
"yaml": "^1.10.0"
},
"engines": {
- "node": ">=18.0.0"
+ "node": "^14.17.0 || ^16.13.0 || >=18.0.0"
}
},
"node_modules/@actions/core": {
diff --git a/scripts/template-oss/ci-release.yml b/scripts/template-oss/ci-release.yml
index 93dd4f1ed..b486ad411 100644
--- a/scripts/template-oss/ci-release.yml
+++ b/scripts/template-oss/ci-release.yml
@@ -12,12 +12,15 @@
{{ rootNpmPath }} version $NPM_VERSION --ignore-scripts
{{ rootNpmPath }} run resetdeps
git clean -fd
- {{ rootNpmPath }} ls --production >/dev/null
- {{ rootNpmPath }} prune --production --no-save --no-audit --no-fund
+ {{ rootNpmPath }} ls --omit=dev >/dev/null
+ {{ rootNpmPath }} prune --omit=dev --no-save --no-audit --no-fund
node scripts/git-dirty.js
{{ rootNpmPath }} pack --pack-destination=$RUNNER_TEMP
{{ rootNpmPath }} install -g $RUNNER_TEMP/npm-$NPM_VERSION.tgz
{{ rootNpmPath }} install -w smoke-tests --ignore-scripts --no-audit --no-fund
rm -rf {lib,bin,index.js}
- SMOKE_PUBLISH_NPM=1 {{ rootNpmPath }} test -w smoke-tests --ignore-scripts
+ # this one should be npm since we explicitly installed our packed
+ # tarball globally and the next test will make sure our the new
+ # globally installed version contains the git sha
+ SMOKE_PUBLISH_NPM=1 npm test -w smoke-tests --ignore-scripts
{{> stepChecks jobCheck=true }}