Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions canary-publish/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53315,7 +53315,7 @@ function main() {
changedFiles,
});
if (changedPackageInfos.length === 0) {
core.info('변경된 패키지가 없습니다.');
core.info('No changed packages found.');
return;
}
yield Promise.all([
Expand Down Expand Up @@ -53472,7 +53472,7 @@ function getChangedPackages(_a) {
}
return acc;
}, new Set());
console.log('필터링된 packages', Array.from(changedPackages)); // eslint-disable-line
console.log('Packages filtered: ', Array.from(changedPackages)); // eslint-disable-line
return Array.from(changedPackages);
});
}
Expand Down Expand Up @@ -53555,6 +53555,9 @@ const core = __importStar(__nccwpck_require__(6108));
const fs = __importStar(__nccwpck_require__(77));
function setNpmRc() {
return __awaiter(this, void 0, void 0, function* () {
// 입력값에서 npm_token 가져오기
const npmToken = core.getInput('npm_token');
process.env.NPM_TOKEN = npmToken; // 환경변수로 설정
core.info('No changesets found, attempting to publish any unpublished packages to npm');
const userNpmrcPath = `${process.env.HOME}/.npmrc`;
if (fs.existsSync(userNpmrcPath)) {
Expand Down
2 changes: 1 addition & 1 deletion canary-publish/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async function main() {
})

if (changedPackageInfos.length === 0) {
core.info('변경된 패키지가 없습니다.')
core.info('No changed packages found.')
return
}

Expand Down
2 changes: 1 addition & 1 deletion canary-publish/src/utils/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function getChangedPackages({
return acc
}, new Set<string>())

console.log('필터링된 packages', Array.from(changedPackages)) // eslint-disable-line
console.log('Packages filtered: ', Array.from(changedPackages)) // eslint-disable-line

return Array.from(changedPackages)
}
Expand Down
4 changes: 4 additions & 0 deletions canary-publish/src/utils/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import * as core from '@actions/core'
import * as fs from 'fs-extra'

export async function setNpmRc() {
// 입력값에서 npm_token 가져오기
const npmToken = core.getInput('npm_token')
process.env.NPM_TOKEN = npmToken // 환경변수로 설정

core.info('No changesets found, attempting to publish any unpublished packages to npm')

const userNpmrcPath = `${process.env.HOME}/.npmrc`
Expand Down