ci: call the right build script
This commit is contained in:
parent
16106891c6
commit
d60d32db19
2 changed files with 5 additions and 3 deletions
|
@ -15,7 +15,6 @@ build:
|
|||
image: mcr.microsoft.com/dotnet/sdk:5.0
|
||||
stage: build
|
||||
script:
|
||||
# Set up the environment.
|
||||
- npx npm install --ci
|
||||
- npx commitlint-gitlab-ci -x @commitlint/config-conventional
|
||||
- dotnet restore
|
||||
|
@ -50,7 +49,8 @@ publish:
|
|||
stage: release
|
||||
script:
|
||||
- npm install --ci
|
||||
- npm run build
|
||||
- dotnet restore
|
||||
- dotnet build
|
||||
- npx semantic-release
|
||||
rules:
|
||||
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
|
||||
|
|
|
@ -3,7 +3,9 @@
|
|||
"version": "1.0.3",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"prepare": "husky install"
|
||||
"prepare": "husky install",
|
||||
"build": "dotnet build",
|
||||
"test": "dotnet test"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@commitlint/cli": "^13.1.0",
|
||||
|
|
Reference in a new issue