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

Added GPR publishing #1209

Merged
merged 6 commits into from
Mar 21, 2023
Merged

Added GPR publishing #1209

merged 6 commits into from
Mar 21, 2023

Conversation

georgedias
Copy link
Contributor

@georgedias georgedias commented Mar 16, 2023

Change workflow name to include action (from push-to-npm.yml to push-to-npm-gpr.yml)
Add the publishing to GitHub Package Registry (GPR)

@georgedias georgedias added the workflow Any updates, improvements, or new workflow code label Mar 16, 2023
@georgedias georgedias self-assigned this Mar 16, 2023
.github/workflows/push-to-npm-gpr.yml Show resolved Hide resolved
.github/workflows/push-to-npm-gpr.yml Show resolved Hide resolved
.github/workflows/push-to-npm-gpr.yml Outdated Show resolved Hide resolved

# Publish SAF CLI to GitHub Package Registry
- name: Publish SAF CLI to GPR
run: npm publish mitre-saf-v*.tgz
Copy link
Contributor

Choose a reason for hiding this comment

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

"When publishing scoped packages, the access level defaults to restricted. If you want your scoped package to be publicly viewable (and installable) set --access=public." - https://docs.npmjs.com/cli/v8/commands/npm-publish#access

idk why we need --access public for the npm one since it doesn't have that scope input, but shouldn't this publish call have it then?

.github/workflows/push-to-npm-gpr.yml Show resolved Hide resolved
Copy link
Contributor Author

@georgedias georgedias left a comment

Choose a reason for hiding this comment

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

Implemented recommendations

.github/workflows/push-to-npm-gpr.yml Show resolved Hide resolved
Copy link
Contributor Author

@georgedias georgedias left a comment

Choose a reason for hiding this comment

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

Awaiting your input on your first ask.

.github/workflows/push-to-npm-gpr.yml Show resolved Hide resolved
.github/workflows/push-to-npm-gpr.yml Show resolved Hide resolved
.github/workflows/push-to-npm-gpr.yml Outdated Show resolved Hide resolved
.github/workflows/push-to-npm-gpr.yml Show resolved Hide resolved
.github/workflows/push-to-npm-gpr.yml Show resolved Hide resolved
.github/workflows/push-to-npm-gpr.yml Show resolved Hide resolved
.github/workflows/push-to-npm-gpr.yml Show resolved Hide resolved
.github/workflows/push-to-npm-gpr.yml Outdated Show resolved Hide resolved
Copy link
Contributor Author

@georgedias georgedias left a comment

Choose a reason for hiding this comment

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

switched lines - done

.github/workflows/push-to-npm-gpr.yml Show resolved Hide resolved
Copy link
Contributor Author

@georgedias georgedias left a comment

Choose a reason for hiding this comment

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

See my comments.

.github/workflows/push-to-npm-gpr.yml Show resolved Hide resolved
.github/workflows/push-to-npm-gpr.yml Outdated Show resolved Hide resolved
.github/workflows/push-to-npm-gpr.yml Outdated Show resolved Hide resolved
.github/workflows/push-to-npm-gpr.yml Show resolved Hide resolved
Copy link
Contributor Author

@georgedias georgedias left a comment

Choose a reason for hiding this comment

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

made request changes

.github/workflows/push-to-npm-gpr.yml Show resolved Hide resolved
.github/workflows/push-to-npm-gpr.yml Outdated Show resolved Hide resolved
@Amndeep7 Amndeep7 added the ready-to-merge Used by mergify to identify if a PR is ready to merge into main. label Mar 21, 2023
@sonarcloud
Copy link

sonarcloud bot commented Mar 21, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@mergify mergify bot merged commit 32a8162 into main Mar 21, 2023
@mergify mergify bot deleted the pushToGPRWorkflow branch March 21, 2023 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge Used by mergify to identify if a PR is ready to merge into main. workflow Any updates, improvements, or new workflow code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants