Skip to content

Commit

Permalink
build: switch to release-please
Browse files Browse the repository at this point in the history
  • Loading branch information
juancarlosfarah committed Oct 2, 2024
1 parent 16a5464 commit 218467a
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 256 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: release-please

on:
push:
branches:
- main

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
id: release
with:
release-type: node

- uses: actions/checkout@v4

- name: Set tag
if: ${{ steps.release.outputs.releases_created == 'true' }}
id: set-tag
run: |
REPOSITORY=$(echo '${{ github.repository }}')
TAG=$(echo '${{ steps.release.outputs.tag_name }}')
JSON=$(jq -c --null-input --arg repository "$REPOSITORY" --arg tag "$TAG" '{"repository": $repository, "tag": $tag}')
echo "json=$JSON" >> $GITHUB_OUTPUT
Loading

0 comments on commit 218467a

Please sign in to comment.