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 'scripts/template-oss/ci-release.yml')
-rw-r--r--scripts/template-oss/ci-release.yml9
1 files changed, 6 insertions, 3 deletions
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 }}