Skip to content

Commit

Permalink
Merge branch 'release-2.0.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
oat-github-bot committed Oct 19, 2023
2 parents 679be7a + 6d2b56e commit e577ee2
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: npm run coverage:clover
- name: Report coverage
if: always()
uses: slavcodev/coverage-monitor-action@1.1.0
uses: slavcodev/coverage-monitor-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
clover_file: coverage/clover.xml
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Release NPM package

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 }}
NODE_AUTH_TOKEN: ${{ secrets.CI_NPM_RELEASE_TOKEN }}
run: |
# setup the place
npm config set //registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
npm i -g @oat-sa/tao-extension-release
# install the package
npm ci
#create tag and release a new version
taoRelease npmRelease --release-branch master --no-interactive
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-item-runner-qti",
"version": "2.0.0",
"version": "2.0.1",
"displayName": "TAO Item Runner QTI",
"description": "TAO QTI Item Runner modules",
"files": [
Expand Down

0 comments on commit e577ee2

Please sign in to comment.