Fix release job
This commit is contained in:
parent
1bf6a5b45e
commit
87ee33a202
2 changed files with 6 additions and 6 deletions
|
@ -33,7 +33,7 @@ build:
|
|||
stage: build
|
||||
script:
|
||||
- npm run build
|
||||
- mv dist rick-dice-modifier
|
||||
- mv dist risk-dice-modifier
|
||||
cache:
|
||||
<<: *global_cache
|
||||
artifacts:
|
||||
|
@ -57,7 +57,7 @@ build:
|
|||
script: |
|
||||
npm run updateManifest -- --update=${RELEASE_TYPE}
|
||||
RELEASE_VERSION=$(jq -r '.version' < package.json)
|
||||
git add package.json package-lock.json src/system.json
|
||||
git add package.json package-lock.json src/module.json
|
||||
git --no-pager diff
|
||||
git commit -m "release version ${RELEASE_VERSION}"
|
||||
git tag -f latest
|
||||
|
|
|
@ -26,11 +26,11 @@ function markResultActive(result: DiceTerm.Result): void {
|
|||
}
|
||||
|
||||
function markFirstOneAndFirstTwoActive(results: DiceTerm.Result[]): void {
|
||||
const firstOne = results.find((result) => result.result === 1) as DiceTerm.Result;
|
||||
markResultActive(firstOne);
|
||||
const firstOne = results.find((result) => result.result === 1);
|
||||
if (firstOne) markResultActive(firstOne);
|
||||
|
||||
const firstTwo = results.find((result) => result.result === 2) as DiceTerm.Result;
|
||||
markResultActive(firstTwo);
|
||||
const firstTwo = results.find((result) => result.result === 2);
|
||||
if (firstTwo) markResultActive(firstTwo);
|
||||
}
|
||||
|
||||
function markFirstTwoOnesActive(results: DiceTerm.Result[]): void {
|
||||
|
|
Reference in a new issue