Skip to content

Commit

Permalink
try to publish with registry
Browse files Browse the repository at this point in the history
  • Loading branch information
OrbintSoft committed Aug 14, 2022
1 parent d1fcd95 commit e53d617
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gulpfile.js/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ async function publish() {
}
if (deployedVersion.prerelease[0] === 'rc' || currentVersion.prerelease[0] === 'rc') {
const npmToken = process.env.NPM_TOKEN;
await fse.writeFile('.npmrc', `//registry.npmjs.org/:_authToken=${npmToken}`);
await executeProcess('npm', [ 'pack' ]);
await executeProcess('npm', [ 'publish' ]);
await executeProcess('npm', [ 'publish', '--registry', `//registry.npmjs.org/:_authToken=${npmToken}`]);
} else {
throw Error('Before releasing a stable version, an rc must be published and manually tested.');
}
Expand Down

0 comments on commit e53d617

Please sign in to comment.