Skip to content

Commit 4e6b5af

Browse files
committed
fix: Run npm publish from release-please
1 parent 5d54aee commit 4e6b5af

1 file changed

Lines changed: 15 additions & 3 deletions

File tree

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,28 @@
1-
# https://github.com/google-github-actions/release-please-action?tab=readme-ov-file#basic-configuration
1+
# https://github.com/google-github-actions/release-please-action?tab=readme-ov-file#automating-publication-to-npm
22
on:
33
push:
44
branches:
55
- main
6-
76
name: release-please
8-
97
jobs:
108
release-please:
119
runs-on: ubuntu-latest
1210
steps:
1311
- uses: google-github-actions/release-please-action@v4
12+
id: release
1413
with:
1514
token: ${{ secrets.GH_PAT }}
1615
release-type: node
16+
- uses: actions/checkout@v4
17+
if: ${{ steps.release.outputs.release_created }}
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: "20.6.1"
21+
registry-url: 'https://registry.npmjs.org'
22+
if: ${{ steps.release.outputs.release_created }}
23+
- run: npm ci
24+
if: ${{ steps.release.outputs.release_created }}
25+
- run: npm publish
26+
env:
27+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
28+
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)