Skip to content

Commit 62ac073

Browse files
add release for PR
1 parent 3ec2344 commit 62ac073

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,3 +122,36 @@ jobs:
122122
if: ${{ steps.release.outputs.releases_created }}
123123
env:
124124
NODE_AUTH_TOKEN: ${{ secrets.NPM_JS_WAKU_PUBLISH }}
125+
126+
127+
release:
128+
name: release
129+
runs-on: ubuntu-latest
130+
if: github.event_name == 'pull_request'
131+
needs: [check, proto, browser, node]
132+
steps:
133+
- uses: google-github-actions/release-please-action@v3
134+
id: release
135+
with:
136+
command: manifest
137+
monorepo-tags: true
138+
token: ${{ secrets.CI_TOKEN }}
139+
release-type: node
140+
release-as: ${{ github.event.pull_request.title }}
141+
- uses: actions/checkout@v3
142+
with:
143+
repository: waku-org/js-waku
144+
if: ${{ steps.release.outputs.releases_created }}
145+
- uses: actions/setup-node@v3
146+
if: ${{ steps.release.outputs.releases_created }}
147+
with:
148+
node-version: ${{ env.NODE_JS }}
149+
registry-url: "https://registry.npmjs.org"
150+
- run: npm install
151+
if: ${{ steps.release.outputs.releases_created }}
152+
- run: npm run build
153+
if: ${{ steps.release.outputs.releases_created }}
154+
- run: npm run publish
155+
if: ${{ steps.release.outputs.releases_created }}
156+
env:
157+
NODE_AUTH_TOKEN: ${{ secrets.NPM_JS_WAKU_PUBLISH }}

0 commit comments

Comments
 (0)