We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5767bd4 commit 1eac8abCopy full SHA for 1eac8ab
1 file changed
.github/workflows/npmPublish.yml
@@ -61,6 +61,12 @@ on:
61
required: false
62
default: true
63
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
+
70
jobs:
71
check-publish:
72
outputs:
@@ -279,6 +285,7 @@ jobs:
279
285
${{ inputs.dryrun && '--dryrun' || '' }} \
280
286
${{ inputs.prerelease && format('--prerelease {0}', github.ref_name) || '' }} \
281
287
${{ inputs.sign && '--sign' || '' }}
288
+ working-directory: ${{ inputs.packagePath }}
282
289
env:
283
290
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
284
291
AWS_ACCESS_KEY_ID: ${{secrets.AWS_ACCESS_KEY_ID}}
0 commit comments