From e3ff361669ccc46b228dc78384254bc935072ec6 Mon Sep 17 00:00:00 2001 From: cairnsj <51908793+killij@users.noreply.github.com> Date: Thu, 7 Dec 2023 13:55:57 +0000 Subject: [PATCH] Create semantic-release --- .github/workflows/semantic-release | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/semantic-release diff --git a/.github/workflows/semantic-release b/.github/workflows/semantic-release new file mode 100644 index 0000000..8f67c20 --- /dev/null +++ b/.github/workflows/semantic-release @@ -0,0 +1,31 @@ +name: Semantic release +on: + push: + branches: + - main + - next + +permissions: + contents: read # for checkout + +jobs: + release: + name: Run semantic-release + runs-on: ubuntu-latest + permissions: + contents: write # to be able to publish a GitHub release + issues: write # to be able to comment on released issues + pull-requests: write # to be able to comment on released pull requests + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: "lts/*" + - name: Check for release + env: + GITHUB_TOKEN: ${{ secrets.PAT }} + run: npx semantic-release@22 \ No newline at end of file