Skip to content

Commit 02c81a6

Browse files
authored
Merge pull request #63 from peopledoc/feat/npm-release
[BREAKING] Publish package in peopledoc npm registry
2 parents dd6a45d + bbd8548 commit 02c81a6

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)