Skip to content

Commit

Permalink
Merge pull request #385 from oat-sa/feature/enable-auto-semver-releas…
Browse files Browse the repository at this point in the history
…e-action

feat: added auto semver release for the repo
  • Loading branch information
edwin-focaloid authored Dec 14, 2023
2 parents 9ccca97 + 915b745 commit 517ea2a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release_tao_extension.yml
Original file line number Diff line number Diff line change
@@ -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 "[email protected]"
- 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

0 comments on commit 517ea2a

Please sign in to comment.