Skip to content

Commit 8319847

Browse files
authored
chore: publish to npm with release-please (#3051)
1 parent d22e2eb commit 8319847

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/release-please.yml

+14
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,17 @@ jobs:
3232
needs: [ release-please ]
3333
if: needs.release-please.outputs.pr || startsWith(github.head_ref, 'release-please--')
3434
uses: ./.github/workflows/tests.yml
35+
36+
npm-publish:
37+
needs: release-please
38+
if: ${{ needs.release-please.outputs.release_created }}
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/checkout@v4
42+
- uses: actions/setup-node@v4
43+
with:
44+
node-version: lts/*
45+
registry-url: 'https://registry.npmjs.org'
46+
- run: npm publish --access public
47+
env:
48+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)