diff --git a/.github/workflows/semantic-release.yaml b/.github/workflows/semantic-release.yaml new file mode 100644 index 000000000..7c6cd2bca --- /dev/null +++ b/.github/workflows/semantic-release.yaml @@ -0,0 +1,39 @@ +name: Semantic Release + +on: + push: + branches: + - main + +jobs: + semantic-release: + if: "!contains(github.event.head_commit.message, '[skip ci]')" + + name: Semantic Release + runs-on: ubuntu-latest + permissions: + contents: write + issues: write + pull-requests: write + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + persist-credentials: false + + - uses: actions/setup-node@v3 + with: + node-version: "lts/*" + + - name: Install dependencies + run: npm ci + + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: npx semantic-release + + + diff --git a/.releaserc.prerelease.yaml b/.releaserc.prerelease.yaml new file mode 100644 index 000000000..a4dba1ad0 --- /dev/null +++ b/.releaserc.prerelease.yaml @@ -0,0 +1,9 @@ +plugins: + - "@semantic-release/commit-analyzer" + - "@semantic-release/release-notes-generator" + - "@semantic-release/changelog" + - "@semantic-release/git" + +branches: + - main + \ No newline at end of file diff --git a/.releaserc.yaml b/.releaserc.yaml new file mode 100644 index 000000000..271947c1e --- /dev/null +++ b/.releaserc.yaml @@ -0,0 +1,13 @@ +plugins: + - "@semantic-release/commit-analyzer" + - "@semantic-release/release-notes-generator" + - "@semantic-release/changelog" + - "@semantic-release/npm" + - "@semantic-release/git" + +branches: + - main + +workspaces: + - path: packages/cli + - path: packages/11ty \ No newline at end of file