fix: bump

This commit is contained in:
Jeroen Savat 2021-04-01 11:12:25 +02:00
parent 328f96fa9a
commit 85f657bf7c
2 changed files with 4 additions and 7 deletions

View file

@ -89,10 +89,6 @@ jobs:
- run: - run:
name: Increase version with semantic-release name: Increase version with semantic-release
command: yarn run release command: yarn run release
- run:
name: Push package
command: dotnet nuget push dotnet nuget push ./SMBLibrary/bin/Release/SMBLibrary.1.4.7.nupkg --source "github" --api-key $GITHUB_TOKEN
- persist_to_workspace: - persist_to_workspace:
root: . root: .
paths: paths:
@ -105,14 +101,14 @@ workflows:
jobs: jobs:
- build: - build:
context: context:
- lec-github-packages-rw - lec-github-release
filters: filters:
branches: branches:
only: << pipeline.parameters.git-primary-branch >> only: << pipeline.parameters.git-primary-branch >>
- release: - release:
context: context:
- lec-github-packages-rw - lec-github-release
requires: requires:
- build - build
filters: filters:

View file

@ -18,7 +18,8 @@ module.exports = {
"prepareCmd": `sed -i -E 's/<Version>${previousVersion}/<Version>\${nextRelease.version}/' ${projectfolder}${csprojfile} && \ "prepareCmd": `sed -i -E 's/<Version>${previousVersion}/<Version>\${nextRelease.version}/' ${projectfolder}${csprojfile} && \
git add ${projectfolder}${csprojfile} && \ git add ${projectfolder}${csprojfile} && \
git commit -m ":bookmark: Bump from ${previousVersion} to \${nextRelease.version} in ${projectfolder}${csprojfile}" && \ git commit -m ":bookmark: Bump from ${previousVersion} to \${nextRelease.version} in ${projectfolder}${csprojfile}" && \
dotnet pack ${projectfolder}${csprojfile} --configuration Release` dotnet pack ${projectfolder}${csprojfile} --configuration Release && \
dotnet nuget push ./${projectfolder}bin/Release/${nugetpackage}.\${nextRelease.version}.nupkg --source \"github\" --api-key $GITHUB_TOKEN`
} }
], ],
[ [