File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -47,11 +47,16 @@ phases:
47
47
console.log(auth.generate(process.env.OTP_SECRET_KEY)),
48
48
auth.timeRemaining() * 1000);
49
49
"`
50
+ # npm will only expand env vars inside .npmrc
51
+ # NOTE the ' this is to keep the env var NPM_TOKEN from expanding!
52
+ - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc
50
53
# Now we publish to npm.
51
54
# This is going to use the OTP generated above and the NPM_TOKEN
52
55
# environment variable. This will only publish things that are
53
56
# missing from npm. It is therefore safe to run repeatedly.
54
57
- npx lerna publish from-package --yes --otp $OTP
58
+ # remove after publishing
59
+ - rm .npmrc
55
60
# Clear out the verdaccio cache so that we get the latest version
56
61
# of everything from public npm
57
62
- rm -rf verdaccio/storage/
You can’t perform that action at this time.
0 commit comments