Skip to content

Commit af93e14

Browse files
committed
ci: publicação do pacote no registro do GitHub (#7)
1 parent 798759e commit af93e14

File tree

4 files changed

+1730
-1726
lines changed

4 files changed

+1730
-1726
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Publish Package
2+
on:
3+
release:
4+
types: [published]
5+
jobs:
6+
publish:
7+
runs-on: ubuntu-latest
8+
env:
9+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-node@v2
13+
with:
14+
node-version: '14.x'
15+
cache: 'npm'
16+
- run: npm i && npm run build:dist && npm publish

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
//npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN}
2+
@MP-ES:registry=https://npm.pkg.github.com
3+
always-auth=true

0 commit comments

Comments
 (0)