From c6534c6c8250e76fbd0cbb0a309abf10a46663bf Mon Sep 17 00:00:00 2001 From: Carlo D'Ambrosio Date: Wed, 15 Oct 2025 02:21:40 +0200 Subject: [PATCH] chore: semantic release setup --- .github/workflows/main-release.yml | 30 ++++++++++++++++++++++++++++++ package.json | 18 ++++++++++++++++++ 2 files changed, 48 insertions(+) create mode 100644 .github/workflows/main-release.yml create mode 100644 package.json diff --git a/.github/workflows/main-release.yml b/.github/workflows/main-release.yml new file mode 100644 index 0000000..250f46e --- /dev/null +++ b/.github/workflows/main-release.yml @@ -0,0 +1,30 @@ +name: Module release +on: + push: + branches: + - main + +permissions: + issues: write + contents: write + pull-requests: write + +jobs: + release-module: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: 'lts/*' + - name: Install dependencies + run: npm install + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npx semantic-release \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..be2a81e --- /dev/null +++ b/package.json @@ -0,0 +1,18 @@ +{ + "name": "terraform-aws-analytics-pipeline", + "private": true, + "devDependencies": { + "@semantic-release/github": "^11.0.6", + "semantic-release": "^24.2.9" + }, + "release": { + "branches": [ + "main" + ] + }, + "plugins": [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/github" + ] +} \ No newline at end of file