ci: release please mechanism (#83)

This commit is contained in:
Adam Uhlíř 2022-05-02 10:22:38 +02:00 committed by GitHub
parent 360f3e07c2
commit 743b25e9fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 0 deletions

25
.github/workflows/publish_npmjs.yaml vendored Normal file
View File

@ -0,0 +1,25 @@
# After new release is published on github, publish it to npmjs
name: Publish on npmjs
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- uses: apexskier/github-release-commenter@v1
with:
GITHUB_TOKEN: ${{ secrets.REPO_GHA_PAT }}
comment-template: |
Release {release_link} addresses this.

20
.github/workflows/release_github.yaml vendored Normal file
View File

@ -0,0 +1,20 @@
# On each new commit to master, create/update a PR with release
# automatically bumps version and creates changelog as per conventional commits
name: Release Github
on:
push:
branches:
- master
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: GoogleCloudPlatform/release-please-action@v2
id: release
with:
token: ${{ secrets.REPO_GHA_PAT }}
release-type: node
package-name: bee-factory
bump-minor-pre-major: true