Skip to content
This repository was archived by the owner on Feb 14, 2024. It is now read-only.

Commit 8df4f5a

Browse files
author
Froilan Irizarry
authored
Update main.workflow
Initial test of publish action
1 parent 0e93b5f commit 8df4f5a

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

.github/main.workflow

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
workflow "Deploy to NPM" {
22
on = "release"
3-
resolves = ["GitHub Action for npm"]
3+
resolves = [
4+
"Publish to npm",
5+
"Publish to GPR",
6+
]
47
}
58

6-
action "GitHub Action for npm" {
9+
action "Publish to npm" {
710
uses = "actions/npm@master"
811
secrets = ["NPM_AUTH_TOKEN"]
912
args = "publish --accee-public"
1013
}
14+
15+
action "Publish to GPR" {
16+
uses = "actions/npm@master"
17+
secrets = ["GITHUB_TOKEN"]
18+
args = "publish"
19+
env = {
20+
NPM_REGISTRY_URL = "https://npm.pkg.github.com/"
21+
}
22+
}

0 commit comments

Comments
 (0)