Fix release job

This commit is contained in:
Johannes Loher 2021-02-07 19:49:23 +01:00
parent 1bf6a5b45e
commit 87ee33a202
2 changed files with 6 additions and 6 deletions

View file

@ -33,7 +33,7 @@ build:
stage: build stage: build
script: script:
- npm run build - npm run build
- mv dist rick-dice-modifier - mv dist risk-dice-modifier
cache: cache:
<<: *global_cache <<: *global_cache
artifacts: artifacts:
@ -57,7 +57,7 @@ build:
script: | script: |
npm run updateManifest -- --update=${RELEASE_TYPE} npm run updateManifest -- --update=${RELEASE_TYPE}
RELEASE_VERSION=$(jq -r '.version' < package.json) 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 --no-pager diff
git commit -m "release version ${RELEASE_VERSION}" git commit -m "release version ${RELEASE_VERSION}"
git tag -f latest git tag -f latest

View file

@ -26,11 +26,11 @@ function markResultActive(result: DiceTerm.Result): void {
} }
function markFirstOneAndFirstTwoActive(results: DiceTerm.Result[]): void { function markFirstOneAndFirstTwoActive(results: DiceTerm.Result[]): void {
const firstOne = results.find((result) => result.result === 1) as DiceTerm.Result; const firstOne = results.find((result) => result.result === 1);
markResultActive(firstOne); if (firstOne) markResultActive(firstOne);
const firstTwo = results.find((result) => result.result === 2) as DiceTerm.Result; const firstTwo = results.find((result) => result.result === 2);
markResultActive(firstTwo); if (firstTwo) markResultActive(firstTwo);
} }
function markFirstTwoOnesActive(results: DiceTerm.Result[]): void { function markFirstTwoOnesActive(results: DiceTerm.Result[]): void {