From 3931b224cb3140ad3ba759edcf564621a2e34542 Mon Sep 17 00:00:00 2001 From: Lucas Holmquist Date: Tue, 16 May 2023 16:13:49 -0400 Subject: [PATCH] chore: add publish automation (#550) Signed-off-by: Lucas Holmquist --- .github/workflows/release-please.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index 64557ca..c812a36 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -13,3 +13,19 @@ jobs: release-type: node package-name: cloudevents changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"docs","section":"Documentation","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false},{"type":"src","section":"Miscellaneous","hidden":false},{"type":"style","section":"Miscellaneous","hidden":false},{"type":"refactor","section":"Miscellaneous","hidden":false},{"type":"perf","section":"Performance","hidden":false},{"type":"test","section":"Tests","hidden":false}]' + + - uses: actions/checkout@v3 + if: ${{ steps.release.outputs.release_created }} + - uses: actions/setup-node@v3 + with: + node-version: 16 + registry-url: 'https://registry.npmjs.org' + if: ${{ steps.release.outputs.release_created }} + - run: npm ci + if: ${{ steps.release.outputs.release_created }} + - run: npm test + if: ${{ steps.release.outputs.release_created }} + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.CLOUDEVENTS_PUBLISH}} + if: ${{ steps.release.outputs.release_created }} \ No newline at end of file