Skip to content

Commit

Permalink
feat: 先发包再打 release
Browse files Browse the repository at this point in the history
  • Loading branch information
黄建峰 committed May 20, 2020
1 parent b158cff commit 652751c
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,21 @@ on:
name: Create Release

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
registry-url: https://registry.npmjs.org/
- run: yarn
- run: yarn pub from-package --force-publish --yes
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
build:
needs: publish-npm
name: Create Release
runs-on: ubuntu-latest
steps:
Expand All @@ -31,17 +45,3 @@ jobs:
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
registry-url: https://registry.npmjs.org/
- run: yarn
- run: yarn pub from-package --force-publish --yes
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

1 comment on commit 652751c

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for website ready!

Built with commit 652751c

https://father-doc-yform-csfp9fp7o.now.sh

Please sign in to comment.