From 6f2111bd4762af818e26012af1ff59f926af4242 Mon Sep 17 00:00:00 2001 From: Danilo Pianini Date: Thu, 16 Nov 2023 12:30:54 +0100 Subject: [PATCH] ci: enable semantic-release --- .github/real-workflows/test.yml | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/real-workflows/test.yml b/.github/real-workflows/test.yml index db2f831..cecc00c 100644 --- a/.github/real-workflows/test.yml +++ b/.github/real-workflows/test.yml @@ -13,11 +13,34 @@ on: jobs: test: - runs-on: ubuntu-latest + runs-on: ubuntu-22.04 steps: - name: Test running on ${{github.repository}} run: echo Commit ${{github.sha}} seems to be working - <<: *anchor run: echo Commit ${{github.sha}} from a merge key seems to be working - *anchor - + release: + concurrency: + group: release-${{ github.event.number || github.ref }} + permissions: + contents: write + packages: write + needs: + - test + runs-on: ubuntu-22.04 + if: >- + !github.event.repository.fork + && ( + github.event_name != 'pull_request' + || github.event.pull_request.head.repo.full_name == github.repository + ) + steps: + - name: Install Node + uses: actions/setup-node@v4.0.0 + - name: Checkout + uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + - name: Install dependencies + run: npm install + - name: Semantic Release + run: npx semantic-release