diff --git a/.circleci/config.yml b/.circleci/config.yml index 9ee6ea8..2d17bb4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -89,10 +89,6 @@ jobs: - run: name: Increase version with semantic-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: root: . paths: @@ -105,14 +101,14 @@ workflows: jobs: - build: context: - - lec-github-packages-rw + - lec-github-release filters: branches: only: << pipeline.parameters.git-primary-branch >> - release: context: - - lec-github-packages-rw + - lec-github-release requires: - build filters: diff --git a/release.config.js b/release.config.js index 28da80c..834993c 100644 --- a/release.config.js +++ b/release.config.js @@ -18,7 +18,8 @@ module.exports = { "prepareCmd": `sed -i -E 's/${previousVersion}/\${nextRelease.version}/' ${projectfolder}${csprojfile} && \ git add ${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` } ], [