Skip to content

Commit 372d827

Browse files
authored
ci(npm): add npm upload to release script (#22)
1 parent d8d11f8 commit 372d827

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

.github/workflows/release-please.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,14 @@ jobs:
2929
with:
3030
node-version: 18
3131
registry-url: 'https://registry.npmjs.org'
32-
- name: Build Packages
32+
- name: Install Dependencies
33+
run: npm ci
3334
if: ${{ steps.release.outputs.releases_created }}
34-
run: |
35-
npm install
36-
npx lerna bootstrap
37-
38-
# Release Please has already incremented versions and published tags, so we just
39-
# need to publish all unpublished versions to NPM here
40-
# See: https://github.com/lerna/lerna/tree/main/commands/publish#bump-from-package
41-
#- name: Publish to NPM
42-
# if: ${{ steps.release.outputs.releases_created }}
43-
# env:
44-
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
45-
# run: npx lerna publish from-package --no-push --no-private --yes
35+
- name: Publish to npm
36+
# Release Please has already incremented versions and published tags, so we just
37+
# need to publish all unpublished versions to NPM here
38+
# See: https://github.com/lerna/lerna/tree/main/commands/publish#bump-from-package
39+
if: ${{ steps.release.outputs.releases_created }}
40+
run: npm publish --provenance
41+
env:
42+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)