-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
5,753 additions
and
3,161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,6 @@ | |
/** | ||
* @author Péter Halász <[email protected]> | ||
*/ | ||
import _ from 'lodash'; | ||
|
||
/** | ||
* MATCH branching rule | ||
|
@@ -48,8 +47,8 @@ export default function matchBranchRuleFactory( | |
return Promise.all([ | ||
responseStore.getCorrectResponse(correctIdentifier), | ||
responseStore.getResponse(variableIdentifier) | ||
]).then(function(result) { | ||
return _.contains(result[0], result[1]); | ||
]).then(function (result) { | ||
return result[0].includes(result[1]); | ||
}); | ||
} | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.