Skip to content

Commit

Permalink
Merge branch 'release-2.4.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
oat-github-bot committed Aug 16, 2023
2 parents 86aa427 + 383a2bc commit 11c50db
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
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.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oat-sa/tao-extension-release",
"version": "2.3.2",
"version": "2.4.0",
"description": "Helps you to release TAO extensions",
"engines": {
"node": ">=14.0.0"
Expand Down

0 comments on commit 11c50db

Please sign in to comment.