From ec4940f3f21e9f853e428f64c5334a8cf4a24a86 Mon Sep 17 00:00:00 2001 From: Markus Heinemann Date: Wed, 1 Jun 2022 15:00:36 +0000 Subject: [PATCH] ci: add semantic-release --- .github/workflows/release.yaml | 17 ++++++++++++----- .releaserc | 1 + 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 15e01f5..50af5f0 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,18 +1,25 @@ -name: Release +name: Release Assets on: push: branches: - - main + - master jobs: create-version: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Use Node.js 16 + - name: Use Node.js 16.x uses: actions/setup-node@v3 with: node-version: 16.x - - name: Run semantic-release - run: yarn semantic-release + - name: Install Dependencies + run: yarn install --frozen-lockfile + - name: Build Assets + run: yarn build + - name: Create Version + run: npx semantic-release + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + diff --git a/.releaserc b/.releaserc index e11bc46..9a9915d 100644 --- a/.releaserc +++ b/.releaserc @@ -11,6 +11,7 @@ "npmPublish": false } ], + "@semantic-release/github", "@semantic-release/git" ] } \ No newline at end of file