Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add auto release action and an emergency label will be attached… #112

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/release_tao_extension.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Release Tao extension

on:
workflow_dispatch:
push:
branches:
- develop

jobs:
auto-release:
if: github.event.pull_request.merged == true
name: Automated Tao extension 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 run release tool
env:
GITHUB_TOKEN: ${{ secrets.SEMVER_GH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npm config set //registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
npm i -g
npm i update-notifier
#create tag and release a new version
taoRelease npmRelease --no-interactive

#Release branch will be different for each repository, make necessary changes.
Loading