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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish to GPR as well as NPM! 馃挄馃檶 #450

Closed
wants to merge 22 commits into from
22 changes: 18 additions & 4 deletions .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ workflow "Primer Components Workflow" {
resolves = [
"npm lint",
"npm test",
"publish",
"publish to gpr",
"publish to npm",
"deploy",
]
}
Expand Down Expand Up @@ -31,12 +32,25 @@ action "deploy" {
secrets = ["GITHUB_TOKEN", "NOW_TOKEN"]
}

action "publish" {
uses = "primer/publish@v1.0.0"
action "publish to npm" {
uses = "primer/publish@f0be8131d0eb6f24f7f7d83825a766bfc5bcd1ca"
needs = ["npm install"]
secrets = [
"GITHUB_TOKEN",
"NPM_AUTH_TOKEN",
]
args = ["--", "--unsafe-perm"]
args = ["--", "--unsafe-perm", "--allow-same-version"]
}

action "publish to gpr" {
uses = "primer/publish@f0be8131d0eb6f24f7f7d83825a766bfc5bcd1ca"
needs = ["publish to npm"]
secrets = [
"GITHUB_TOKEN",
"GPR_AUTH_TOKEN",
]
args = ["--", "--unsafe-perm", "--allow-same-version"]
env = {
NPM_REGISTRY_URL = "npm.pkg.github.com"
}
}