Skip to content

Commit 1eac8ab

Browse files
committed
feat: monorepo publishing
1 parent 5767bd4 commit 1eac8ab

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/npmPublish.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ on:
6161
required: false
6262
default: true
6363
type: boolean
64+
packagePath:
65+
description: relative path to the package to publish, should start with a ".". Defaults to the root of the repository. Useful for monorepos.
66+
required: false
67+
type: string
68+
default: .
69+
6470
jobs:
6571
check-publish:
6672
outputs:
@@ -279,6 +285,7 @@ jobs:
279285
${{ inputs.dryrun && '--dryrun' || '' }} \
280286
${{ inputs.prerelease && format('--prerelease {0}', github.ref_name) || '' }} \
281287
${{ inputs.sign && '--sign' || '' }}
288+
working-directory: ${{ inputs.packagePath }}
282289
env:
283290
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
284291
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}

0 commit comments

Comments
 (0)