From 915b745727338899c4485c233231c96c7d9ffc4a Mon Sep 17 00:00:00 2001 From: Edwin Sany Date: Wed, 13 Dec 2023 21:32:45 +0530 Subject: [PATCH 1/2] feat: added auto semver release for the repo --- .github/workflows/release_tao_extension.yml | 37 +++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/release_tao_extension.yml diff --git a/.github/workflows/release_tao_extension.yml b/.github/workflows/release_tao_extension.yml new file mode 100644 index 000000000..3b64a853d --- /dev/null +++ b/.github/workflows/release_tao_extension.yml @@ -0,0 +1,37 @@ +name: Release tao extension + +on: + pull_request: + branches: + - develop + types: [closed] + +jobs: + auto-release: + if: github.event.pull_request.merged == true + name: Automated package release + runs-on: ubuntu-latest + + steps: + - name: Clone the repository + uses: actions/checkout@v3 + with: + fetch-depth: 0 #avoid unrelated history error + token: ${{ secrets.SEMVER_GH_TOKEN }} #bypass branch protection rule + + - name: Configure git user + #configuring git for runner + run: | + git config --global user.name "oat-github-bot" + git config --global user.email "oat-github-bot@taotesting.com" + + - name: Install and apply the release tool + env: + GITHUB_TOKEN: ${{ secrets.SEMVER_GH_TOKEN }} + run: | + # setup the place + npm i -g @oat-sa/tao-extension-release + # install the package + npm ci + #create tag and release a new version + taoRelease repoRelease --release-branch master --no-interactive \ No newline at end of file From 12669250fe2f8fbc65c029852894f8fd6cf36413 Mon Sep 17 00:00:00 2001 From: Edwin Sany Date: Thu, 14 Dec 2023 15:59:18 +0530 Subject: [PATCH 2/2] fix: removed npm ci statement from action --- .github/workflows/release_tao_extension.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release_tao_extension.yml b/.github/workflows/release_tao_extension.yml index 3b64a853d..fb538989a 100644 --- a/.github/workflows/release_tao_extension.yml +++ b/.github/workflows/release_tao_extension.yml @@ -32,6 +32,5 @@ jobs: # setup the place npm i -g @oat-sa/tao-extension-release # install the package - npm ci #create tag and release a new version taoRelease repoRelease --release-branch master --no-interactive \ No newline at end of file