Skip to content

Commit 97dedf0

Browse files
authored
refactor(ci): switch publish commands to use npm publish instead of lerna (#4195)
1 parent 99c3be4 commit 97dedf0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/make-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
uses: aws-powertools/actions/.github/actions/cached-node-modules@29979bc5339bf54f76a11ac36ff67701986bb0f0
6666
- name: Publish to npm
6767
run: |
68-
NPM_CONFIG_PROVENANCE=true npx lerna publish from-package --git-head ${{ github.sha }} --yes
68+
npm publish --workspaces --provenance
6969
- name: Set release version
7070
id: set-release-version
7171
run: |

.github/workflows/publish-package.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,4 @@ jobs:
5050
uses: aws-powertools/actions/.github/actions/cached-node-modules@29979bc5339bf54f76a11ac36ff67701986bb0f0
5151
- name: Publish to npm
5252
run: |
53-
NPM_CONFIG_PROVENANCE=true npx lerna publish from-package --force-publish ${{ github.event.input.package }} --git-head ${{ github.sha }} --yes
53+
npm publish --workspace ${{ github.event.input.package }} --provenance

0 commit comments

Comments
 (0)