Skip to content

Commit 3611ca3

Browse files
authored
fix: lerna publish in GH Action
Before publishing, lerna asks for confirmation. Therefore we now hand over '--yes' in the script to confirm automatically.
1 parent 1b517d6 commit 3611ca3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
run: "pnpm run test"
4747

4848
- name: "Versioning"
49-
run: "pnpm exec lerna version ${{ github.event.inputs.next_version }} --no-push --force-publish -y"
49+
run: "pnpm exec lerna version ${{ github.event.inputs.next_version }} --no-push --force-publish --yes"
5050

5151
- name: "Adjust PeerDependencies"
5252
run: |
@@ -65,7 +65,7 @@ jobs:
6565
git tag v${{ github.event.inputs.next_version }} -f
6666
6767
- name: "Publish to npm"
68-
run: "pnpm exec lerna publish from-git ${{ github.event.inputs.stable_release == 'true' && ' ' || '--dist-tag next' }}"
68+
run: "pnpm exec lerna publish from-git --yes ${{ github.event.inputs.stable_release == 'true' && ' ' || '--dist-tag next' }}"
6969
env:
7070
NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}"
7171

0 commit comments

Comments
 (0)