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
|
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
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Reference in a new issue