chore: use release-please app (#8412)

This commit is contained in:
jrandolf 2022-05-30 11:47:15 +02:00 committed by GitHub
parent c96c915b53
commit be26137041
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 20 deletions

3
.github/release-please.yml vendored Normal file
View File

@ -0,0 +1,3 @@
releaseType: node
handleGHRelease: true
primaryBranch: main

View File

@ -1,29 +1,12 @@
name: Release
name: Publish
on:
push:
branches:
- main
tags:
- '*'
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:
needs: release-pr
if: ${{ needs.release-pr.outputs.release_created }}
runs-on: ubuntu-latest
permissions:
contents: read