Skip to content

Commit 2aa642c

Browse files
authored
Merge pull request #452 from semantic-release/beta
2 parents 19761ed + 575a5a4 commit 2aa642c

File tree

7 files changed

+14697
-910
lines changed

7 files changed

+14697
-910
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ jobs:
1414
matrix:
1515
node-version:
1616
- 14.17
17-
- 16
17+
- 16.0.0
18+
- 17
1819
os:
1920
- ubuntu-latest
2021
runs-on: "${{ matrix.os }}"
@@ -34,7 +35,7 @@ jobs:
3435
- uses: actions/checkout@v2
3536
- uses: actions/setup-node@v2
3637
with:
37-
node-version: 16
38+
node-version: 'lts/*'
3839
cache: npm
3940
- run: npm ci
4041
- name: Ensure dependencies are compatible with the version of node

lib/add-channel.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module.exports = async (npmrc, {npmPublish}, pkg, context) => {
2424
{
2525
cwd,
2626
env,
27+
preferLocal: true,
2728
}
2829
);
2930
result.stdout.pipe(stdout, {end: false});

lib/prepare.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module.exports = async (npmrc, {tarballDir, pkgRoot}, {cwd, env, stdout, stderr,
2222

2323
if (tarballDir) {
2424
logger.log('Creating npm package version %s', version);
25-
const packResult = execa('npm', ['pack', basePath, '--userconfig', npmrc], {cwd, env});
25+
const packResult = execa('npm', ['pack', basePath, '--userconfig', npmrc], {cwd, env, preferLocal: true});
2626
packResult.stdout.pipe(stdout, {end: false});
2727
packResult.stderr.pipe(stderr, {end: false});
2828

lib/publish.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ module.exports = async (npmrc, {npmPublish, pkgRoot}, pkg, context) => {
2323
const result = execa(
2424
'npm',
2525
['publish', basePath, '--userconfig', npmrc, '--tag', distTag, '--registry', registry],
26-
{cwd, env}
26+
{cwd, env, preferLocal: true}
2727
);
2828
result.stdout.pipe(stdout, {end: false});
2929
result.stderr.pipe(stderr, {end: false});

lib/verify-auth.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ module.exports = async (npmrc, pkg, context) => {
1818

1919
if (normalizeUrl(registry) === normalizeUrl(DEFAULT_NPM_REGISTRY)) {
2020
try {
21-
const whoamiResult = execa('npm', ['whoami', '--userconfig', npmrc, '--registry', registry], {cwd, env});
21+
const whoamiResult = execa('npm', ['whoami', '--userconfig', npmrc, '--registry', registry], {
22+
cwd,
23+
env,
24+
preferLocal: true,
25+
});
2226
whoamiResult.stdout.pipe(stdout, {end: false});
2327
whoamiResult.stderr.pipe(stderr, {end: false});
2428
await whoamiResult;

0 commit comments

Comments
 (0)