diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90c802b490..3e90ad4e9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -122,3 +122,36 @@ jobs: if: ${{ steps.release.outputs.releases_created }} env: NODE_AUTH_TOKEN: ${{ secrets.NPM_JS_WAKU_PUBLISH }} + + + release: + name: release + runs-on: ubuntu-latest + if: github.event_name == 'pull_request' + needs: [check, proto, browser, node] + steps: + - uses: google-github-actions/release-please-action@v3 + id: release + with: + command: manifest + monorepo-tags: true + token: ${{ secrets.CI_TOKEN }} + release-type: node + release-as: ${{ github.event.pull_request.title }} + - uses: actions/checkout@v3 + with: + repository: waku-org/js-waku + if: ${{ steps.release.outputs.releases_created }} + - uses: actions/setup-node@v3 + if: ${{ steps.release.outputs.releases_created }} + with: + node-version: ${{ env.NODE_JS }} + registry-url: "https://registry.npmjs.org" + - run: npm install + if: ${{ steps.release.outputs.releases_created }} + - run: npm run build + if: ${{ steps.release.outputs.releases_created }} + - run: npm run publish + if: ${{ steps.release.outputs.releases_created }} + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_JS_WAKU_PUBLISH }} \ No newline at end of file