Skip to content

Commit

Permalink
chore: Merge pull request #1 from plutotcool/hotfix/lerna-env
Browse files Browse the repository at this point in the history
fix: create release env vars from current process's env destructuring
  • Loading branch information
bastienrobert authored Jan 19, 2021
2 parents 7960b83 + ad1ef4f commit 5c4a25f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7030,6 +7030,7 @@ __webpack_require__.r(__webpack_exports__);
.bin[cli]}`;
_actions_core__WEBPACK_IMPORTED_MODULE_0__.info(`Creating release on GitHub${publishToGithub ? ' and publishing to GitHub registry' : ''}...`);
await release(cliPath, true, publishToGithub, {
...process.env,
NPM_CONFIG_REGISTRY: `https://npm.pkg.github.com/${owner}`,
NPM_TOKEN: githubToken,
GITHUB_TOKEN: githubToken
Expand All @@ -7038,6 +7039,7 @@ __webpack_require__.r(__webpack_exports__);
publishToGithub && _actions_core__WEBPACK_IMPORTED_MODULE_0__.info('Package available on GitHub registry');
publishToNPM && _actions_core__WEBPACK_IMPORTED_MODULE_0__.info('Publishing to NPM registry...');
await release(cliPath, false, publishToNPM, {
...process.env,
NPM_CONFIG_REGISTRY: 'https://registry.npmjs.org',
NPM_TOKEN: npmToken
});
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ import { promises as fs } from 'fs'
)

await release(cliPath, true, publishToGithub, {
...process.env,
NPM_CONFIG_REGISTRY: `https://npm.pkg.github.com/${owner}`,
NPM_TOKEN: githubToken,
GITHUB_TOKEN: githubToken
Expand All @@ -119,6 +120,7 @@ import { promises as fs } from 'fs'
)

await release(cliPath, false, publishToNPM, {
...process.env,
NPM_CONFIG_REGISTRY: 'https://registry.npmjs.org',
NPM_TOKEN: npmToken
})
Expand Down

0 comments on commit 5c4a25f

Please sign in to comment.