Skip to content
This repository was archived by the owner on May 16, 2022. It is now read-only.

Commit 43412af

Browse files
committed
Publish to the GitHub Package Registry
1 parent 6d8ed25 commit 43412af

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ on:
55
types: [ created ]
66

77
jobs:
8-
publish-npm:
8+
npm:
9+
name: NPM
910
runs-on: ubuntu-latest
1011
steps:
1112
- uses: actions/checkout@v1
@@ -16,4 +17,17 @@ jobs:
1617
- run: npm install
1718
- run: npm publish
1819
env:
19-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
20+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
21+
github:
22+
name: GitHub Package Registry
23+
runs-on: ubuntu-latest
24+
steps:
25+
- uses: actions/checkout@v2
26+
- uses: actions/setup-node@v1
27+
with:
28+
node-version: 12
29+
registry-url: 'https://npm.pkg.github.com'
30+
- run: npm install
31+
- run: npm publish
32+
env:
33+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)