From 483885bf31b48477d338fcf580512b61b33e2706 Mon Sep 17 00:00:00 2001 From: Orkun Date: Fri, 20 Oct 2023 14:06:12 +0300 Subject: [PATCH] chore: use our reusable release workflow --- .github/workflows/release.yml | 47 ++++++++--------------------------- 1 file changed, 10 insertions(+), 37 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d5a002..6b53066 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,39 +1,12 @@ -name: Release - +name: release on: - workflow_dispatch: - - + push: + branches: + - main jobs: - release: - name: Release new version - environment: production - runs-on: ubuntu-latest - - if: github.ref_protected == true - - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - persist-credentials: false - fetch-depth: 0 - - - name: Install node - uses: actions/setup-node@v3 - with: - node-version-file: '.node-version' - - - name: Install Node packages - run: yarn install - - name: Build - run: yarn build --type all - - name: Semantic Release - uses: cycjimmy/semantic-release-action@91ab76a4a393a8d0c4739e9aea1818b56bc953ea - with: - extra_plugins: | - @semantic-release/exec@6.0.3 - conventional-changelog-conventionalcommits@5.0.0 - env: - GITHUB_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} - HUSKY: 0 + release-workflow: + uses: fingerprintjs/dx-team-toolkit/.github/workflows/release-typescript-project.yml@v1 + with: + distFolderNeedForRelease: true + secrets: + GH_RELEASE_TOKEN: ${{ secrets.GH_RELEASE_TOKEN }} \ No newline at end of file