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 /.github
parent2d756cbb05125dcb769f2ca4c1687e42568d5882 (diff)
chore(ci): use globally installed npm executable (#5555)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci-release.yml9
1 files changed, 6 insertions, 3 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()