From c210d6a423acd38e57987ffa0a4ecce1fa78e2f0 Mon Sep 17 00:00:00 2001 From: Patrick Kissling Date: Thu, 20 Jun 2024 08:33:45 +0200 Subject: [PATCH] Add release-please github workflow --- .github/workflows/release-please.yaml | 21 +++++++++++++++++++++ .github/workflows/release.yml | 5 ----- 2 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/release-please.yaml diff --git a/.github/workflows/release-please.yaml b/.github/workflows/release-please.yaml new file mode 100644 index 00000000..00bc60b5 --- /dev/null +++ b/.github/workflows/release-please.yaml @@ -0,0 +1,21 @@ +--- + +name: Release please + +on: + push: + branches: + - master + +permissions: + contents: write + pull-requests: write + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: googleapis/release-please-action@v4 + with: + token: ${{ secrets.RELEASE_PLEASE_TOKEN }} + release-type: node diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 883395ad..d36a75db 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,15 +12,10 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Make slug values available - uses: gacts/github-slug@v1 - id: slug - - name: Build the file run: | cd /home/runner/work/clock-weather-card/clock-weather-card yarn install - yarn version --no-git-tag-version --new-version ${{ steps.slug.outputs.version }} yarn build - name: Upload zip to release