From 8bd4c28ade7290327627f4ed3aa15b40a9a6b1f0 Mon Sep 17 00:00:00 2001 From: Patryk Szram Date: Fri, 5 Jan 2024 12:19:16 +0100 Subject: [PATCH] Packages --- .github/workflows/firebase-hosting-merge.yml | 18 +++++++++++ .github/workflows/release.yml | 33 -------------------- 2 files changed, 18 insertions(+), 33 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index bb38927..2fb8c39 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -34,3 +34,21 @@ jobs: firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_RESUME_SZRAM_CO }}' channelId: live projectId: resume-szram-co + + - name: Release + uses: cycjimmy/semantic-release-action@v4 + with: + extra_plugins: | + @semantic-release/changelog@6.0.0 + @semantic-release/git + id: semantic + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Do something when a new release published + if: steps.semantic.outputs.new_release_published == 'true' + run: | + echo ${{ steps.semantic.outputs.new_release_version }} + echo ${{ steps.semantic.outputs.new_release_major_version }} + echo ${{ steps.semantic.outputs.new_release_minor_version }} + echo ${{ steps.semantic.outputs.new_release_patch_version }} \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 4a6083d..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Release -concurrency: production - -on: - push: - branches: - - main - -jobs: - release: - runs-on: ubuntu-latest - steps: - - name: Checkout repository - uses: actions/checkout@v4 - - name: Use Node 20.x - uses: actions/setup-node@v3 - with: - node-version: '20.x' - - name: Install & build dependencies - run: | - npm ci - npm run build-only --if-present - - name: Release - uses: cycjimmy/semantic-release-action@v2 - with: - branch: main - extra_plugins: | - @semantic-release/commit-analyzer - @semantic-release/release-notes-generator - @semantic-release/changelog - @semantic-release/github - env: - GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'