Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 1927: Skip publish for npm and nuget #27

Merged
merged 2 commits into from
Oct 26, 2020
Merged

Issue 1927: Skip publish for npm and nuget #27

merged 2 commits into from
Oct 26, 2020

Conversation

j4ckofalltrades
Copy link
Contributor

Skip publishing non-Maven based artifacts

Refs strongbox/strongbox#1927

This is based off of the issue-1927-nuget-examples branch in #25.

working-directory: 'hello-strongbox-nuget-mono'
- run: nuget pack ./Hello.Strongbox.Nuget.Mono.nuspec
working-directory: 'hello-strongbox-nuget-mono'
- run: nuget push *.nupkg -SkipDuplicate
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From NuGet CLI push command docs:

-SkipDuplicate

(5.1+) If a package and version already exists, skip it and continue with the next package in the push, if any.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic! Thanks! :)

@@ -30,7 +60,13 @@ jobs:
scope: '@strongbox'
- run: npm install
working-directory: 'hello-strongbox-npm'
- run: npm publish
- run: |
Copy link
Contributor Author

@j4ckofalltrades j4ckofalltrades Oct 26, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

npm info <existing_package_name> returns a non-empty string (existing package's info).

@carlspring
Copy link
Member

Thanks for these follow-up fixes! :)

@carlspring carlspring merged commit a4482e9 into strongbox:master Oct 26, 2020
@carlspring carlspring changed the title Issue 1927 skip publish Issue 1927 skip publish for npm and nuget Oct 26, 2020
@carlspring carlspring changed the title Issue 1927 skip publish for npm and nuget Issue 1927: Skip publish for npm and nuget Oct 26, 2020
@j4ckofalltrades j4ckofalltrades deleted the issue-1927-skip-publish branch October 26, 2020 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants