ci: call the right build script

This commit is contained in:
Dylan R. E. Moonfire 2021-11-29 22:33:07 -06:00
parent 16106891c6
commit d60d32db19
2 changed files with 5 additions and 3 deletions

View file

@ -15,7 +15,6 @@ build:
image: mcr.microsoft.com/dotnet/sdk:5.0 image: mcr.microsoft.com/dotnet/sdk:5.0
stage: build stage: build
script: script:
# Set up the environment.
- npx npm install --ci - npx npm install --ci
- npx commitlint-gitlab-ci -x @commitlint/config-conventional - npx commitlint-gitlab-ci -x @commitlint/config-conventional
- dotnet restore - dotnet restore
@ -50,7 +49,8 @@ publish:
stage: release stage: release
script: script:
- npm install --ci - npm install --ci
- npm run build - dotnet restore
- dotnet build
- npx semantic-release - npx semantic-release
rules: rules:
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH

View file

@ -3,7 +3,9 @@
"version": "1.0.3", "version": "1.0.3",
"private": true, "private": true,
"scripts": { "scripts": {
"prepare": "husky install" "prepare": "husky install",
"build": "dotnet build",
"test": "dotnet test"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^13.1.0", "@commitlint/cli": "^13.1.0",