From c4148bd50439a3bdc6a52a6fb047c1a2a52959c0 Mon Sep 17 00:00:00 2001 From: Markos Gogoulos Date: Mon, 7 Oct 2024 09:10:21 +0300 Subject: [PATCH] feat: semantic release --- .github/workflows/semantic-release.yaml | 38 +++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/semantic-release.yaml diff --git a/.github/workflows/semantic-release.yaml b/.github/workflows/semantic-release.yaml new file mode 100644 index 0000000..c192e3a --- /dev/null +++ b/.github/workflows/semantic-release.yaml @@ -0,0 +1,38 @@ +name: Semantic Release + +on: + push: + branches: + - main + +permissions: + contents: write + issues: write + +jobs: + semantic-release: + runs-on: ubuntu-latest + environment: dev + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} + persist-credentials: false + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "lts/*" + + - name: Install Dependencies + run: npm clean-install + + - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies + run: npm audit signatures + + - name: Run Semantic Release + run: npx semantic-release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}