mirror of
https://github.com/logos-storage/codex-factory.git
synced 2026-01-07 15:33:11 +00:00
ci: release please mechanism (#83)
This commit is contained in:
parent
360f3e07c2
commit
743b25e9fa
25
.github/workflows/publish_npmjs.yaml
vendored
Normal file
25
.github/workflows/publish_npmjs.yaml
vendored
Normal 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
20
.github/workflows/release_github.yaml
vendored
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user