Skip to content

Commit 3931b22

Browse files
authored
chore: add publish automation (#550)
Signed-off-by: Lucas Holmquist <[email protected]>
1 parent 43c3584 commit 3931b22

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/release-please.yml

+16
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,19 @@ jobs:
1313
release-type: node
1414
package-name: cloudevents
1515
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}]'
16+
17+
- uses: actions/checkout@v3
18+
if: ${{ steps.release.outputs.release_created }}
19+
- uses: actions/setup-node@v3
20+
with:
21+
node-version: 16
22+
registry-url: 'https://registry.npmjs.org'
23+
if: ${{ steps.release.outputs.release_created }}
24+
- run: npm ci
25+
if: ${{ steps.release.outputs.release_created }}
26+
- run: npm test
27+
if: ${{ steps.release.outputs.release_created }}
28+
- run: npm publish
29+
env:
30+
NODE_AUTH_TOKEN: ${{secrets.CLOUDEVENTS_PUBLISH}}
31+
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)