Skip to content

Commit

Permalink
chore: add github registry publish
Browse files Browse the repository at this point in the history
  • Loading branch information
wxsms committed Nov 4, 2020
1 parent 6b7b68a commit c6147f4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/publish_github.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CD_GITHUB

on:
push:
tags:
- 'v*'

jobs:
publish_github:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v1
with:
node-version: 12
- uses: actions/checkout@v2
- name: change package name
uses: deef0000dragon1/json-edit-action@v1
env:
KEY: name
VALUE: "@wxsms/uiv"
FILE: package.json
- uses: c-hive/gha-yarn-cache@v1
- run: yarn --frozen-lockfile
env:
PUPPETEER_SKIP_DOWNLOAD: true
- name: Build dist
run: npm run dist
- run: echo //npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }} >> .npmrc
- run: npm publish --registry=https://npm.pkg.github.com

0 comments on commit c6147f4

Please sign in to comment.