Skip to content

Commit

Permalink
chore: use release-please app (#8412)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf committed May 30, 2022
1 parent c96c915 commit be26137
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 20 deletions.
3 changes: 3 additions & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
releaseType: node
handleGHRelease: true
primaryBranch: main
23 changes: 3 additions & 20 deletions .github/workflows/release.yml → .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit be26137

Please sign in to comment.