Skip to content

Commit bbd8548

Browse files
committed
ci: add workflows to publish npm package on peopledoc registry
1 parent dd6a45d commit bbd8548

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/release.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Create a package
2+
on:
3+
release:
4+
types: ['created']
5+
jobs:
6+
release:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Use Node.js 10 and setup registry
11+
uses: actions/setup-node@v1
12+
with:
13+
node-version: 10.x
14+
registry-url: https://npm.pkg.github.com/
15+
- name: Install deps
16+
run: npm ci
17+
# env:
18+
# NODE_AUTH_TOKEN: ${{ secrets.GPR_TOKEN }}
19+
- name: Publish
20+
run: npm publish
21+
env:
22+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.npmrc

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Points to Github NPM registry
2+
@peopledoc:registry=https://npm.pkg.github.com

0 commit comments

Comments
 (0)