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

Commit 866caa5

Browse files
author
Froilan Irizarry
authored
Merge pull request #10 from froi/froi-actions
Action workflow initial commit
2 parents 80a5de7 + 7b58de1 commit 866caa5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/main.workflow

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
workflow "Deploy to NPM" {
2+
on = "release"
3+
resolves = [
4+
"Publish to npm",
5+
"Publish to GPR",
6+
]
7+
}
8+
9+
action "Publish to npm" {
10+
uses = "actions/npm@master"
11+
secrets = ["NPM_AUTH_TOKEN"]
12+
args = "publish --accee-public"
13+
}
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)