Skip to content

Commit c6147f4

Browse files
committed
chore: add github registry publish
1 parent 6b7b68a commit c6147f4

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CD_GITHUB
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
publish_github:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/setup-node@v1
13+
with:
14+
node-version: 12
15+
- uses: actions/checkout@v2
16+
- name: change package name
17+
uses: deef0000dragon1/json-edit-action@v1
18+
env:
19+
KEY: name
20+
VALUE: "@wxsms/uiv"
21+
FILE: package.json
22+
- uses: c-hive/gha-yarn-cache@v1
23+
- run: yarn --frozen-lockfile
24+
env:
25+
PUPPETEER_SKIP_DOWNLOAD: true
26+
- name: Build dist
27+
run: npm run dist
28+
- run: echo //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }} >> .npmrc
29+
- run: npm publish --registry=https://npm.pkg.github.com

0 commit comments

Comments
 (0)