File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -53555,6 +53555,9 @@ const core = __importStar(__nccwpck_require__(6108));
53555
53555
const fs = __importStar(__nccwpck_require__(77));
53556
53556
function setNpmRc() {
53557
53557
return __awaiter(this, void 0, void 0, function* () {
53558
+ // 입력값에서 npm_token 가져오기
53559
+ const npmToken = core.getInput('npm_token');
53560
+ process.env.NPM_TOKEN = npmToken; // 환경변수로 설정
53558
53561
core.info('No changesets found, attempting to publish any unpublished packages to npm');
53559
53562
const userNpmrcPath = `${process.env.HOME}/.npmrc`;
53560
53563
if (fs.existsSync(userNpmrcPath)) {
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ import * as core from '@actions/core'
2
2
import * as fs from 'fs-extra'
3
3
4
4
export async function setNpmRc ( ) {
5
+ // 입력값에서 npm_token 가져오기
6
+ const npmToken = core . getInput ( 'npm_token' )
7
+ process . env . NPM_TOKEN = npmToken // 환경변수로 설정
8
+
5
9
core . info ( 'No changesets found, attempting to publish any unpublished packages to npm' )
6
10
7
11
const userNpmrcPath = `${ process . env . HOME } /.npmrc`
You can’t perform that action at this time.
0 commit comments