Skip to content

Commit

Permalink
gitflow自动发布
Browse files Browse the repository at this point in the history
  • Loading branch information
moohng committed May 13, 2020
1 parent 14825bc commit 6639ab1
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 15 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,41 +8,43 @@ on:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: yarn --frozen-lockfile
- run: yarn build --if-present
# - run: yarn test
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v1
# with:
# node-version: 12
# - run: yarn --frozen-lockfile
# - run: yarn build --if-present
# - run: yarn test

publish-npm:
needs: build
# needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
# - run: yarn --frozen-lockfile
- run: yarn --frozen-lockfile
- run: yarn build --if-present
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-gpr:
needs: build
# needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
# - run: npm ci
- run: yarn --frozen-lockfile
- run: yarn build --if-present
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@moohng/dui",
"version": "1.0.5",
"version": "1.0.7",
"private": false,
"description": "基于 Vue 2 的轻量级组件库",
"author": "Kevin",
Expand Down

0 comments on commit 6639ab1

Please sign in to comment.