chore: use release-please app (#8412)
This commit is contained in:
parent
c96c915b53
commit
be26137041
3
.github/release-please.yml
vendored
Normal file
3
.github/release-please.yml
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
releaseType: node
|
||||||
|
handleGHRelease: true
|
||||||
|
primaryBranch: main
|
@ -1,29 +1,12 @@
|
|||||||
name: Release
|
name: Publish
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
tags:
|
||||||
- main
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release-pr:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
outputs:
|
|
||||||
release_created: ${{ steps.release.outputs.release_created }}
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Remove `-post` suffix
|
|
||||||
run: node utils/remove_version_suffix.js
|
|
||||||
- name: Release
|
|
||||||
uses: google-github-actions/release-please-action@v3
|
|
||||||
id: release
|
|
||||||
with:
|
|
||||||
release-type: node
|
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
needs: release-pr
|
|
||||||
if: ${{ needs.release-pr.outputs.release_created }}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
Loading…
Reference in New Issue
Block a user