Skip to content

Commit

Permalink
fix: 🐛 fix options of action
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Jun 10, 2022
1 parent 30cca72 commit 08334ad
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
with:
node-version: 16.x
registry-url: https://registry.npmjs.org/
cache: "pnpm"
cache: pnpm

- name: Install
run: pnpm install
Expand All @@ -25,10 +25,12 @@ jobs:
- name: Release
uses: ./packages/action
env:
debug: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.PAT }}
GIT_AUTHOR_NAME: msr-bot
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: msr-bot
GIT_COMMITTER_EMAIL: [email protected]
with:
debug: true

8 changes: 5 additions & 3 deletions packages/action/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ function getBooleanInput(name: string, options?: core.InputOptions) {

export function getMSROptions(): MSROptions {
const ignorePackagesRaw = core.getInput('ignorePackages')
const ignorePackages = ignorePackagesRaw.split(
ignorePackagesRaw.indexOf(',') >= 0 ? ',' : /\s+/g,
)
const ignorePackages = ignorePackagesRaw
.split(ignorePackagesRaw.indexOf(',') >= 0 ? ',' : /\s+/g)
.map((str) => str.trim())
.filter((str) => str.length > 0)

return {
debug: getBooleanInput('debug'),
dryRun: getBooleanInput('dryRun'),
Expand Down
4 changes: 0 additions & 4 deletions packages/core/src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ export function getManifestPaths(cwd: string, ignorePackages?: string[]) {
}
}

workspace.root.packageJson = getManifest(
path.join(workspace.root.dir, 'package.json'),
)

if (workspace.tool === 'root') {
workspace.packages = []
}
Expand Down

0 comments on commit 08334ad

Please sign in to comment.