Skip to content

Commit c15b344

Browse files
committed
WIP
1 parent 2622b28 commit c15b344

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/npmpublish.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
# checkout the repo
2424
- uses: actions/checkout@v2
2525
- uses: actions/setup-node@v1
26+
with:
27+
node-version: 12
28+
registry-url: https://registry.npmjs.org/
2629
- run: npm ci
2730

2831
# extract tag name
@@ -49,7 +52,6 @@ jobs:
4952
# publish to NPMJS
5053
- uses: actions/setup-node@v1
5154
with:
52-
node-version: 12
5355
registry-url: https://registry.npmjs.org/
5456
- run: npm publish
5557
env:
@@ -58,9 +60,10 @@ jobs:
5860
# publish to GitHub Pacakge Registry
5961
- uses: actions/setup-node@v1
6062
with:
61-
node-version: 12
6263
registry-url: https://npm.pkg.github.com/
6364
scope: '@validide'
64-
- run: npm publish
65+
- run: |
66+
echo @validide:registry=https://npm.pkg.github.com/ >> .npmrc
67+
npm publish
6568
env:
6669
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)