Skip to content

Commit

Permalink
chore: update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
mengshang918 committed Dec 14, 2021
1 parent eeff43b commit e4ae9b3
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 5 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,3 @@ jobs:
- run: |
yarn
yarn build:prod
- name: 'set username and useEmail'
run: |
git config user.name mengshang918
git config user.email [email protected]
33 changes: 33 additions & 0 deletions .github/workflows/release_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,39 @@ jobs:
needs: use-check-action
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: dev

- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: '14'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: 'Install and build'
run: |
yarn
yarn build:prod
- name: 'set username and useEmail'
run: |
git config user.name mengshang918
git config user.email [email protected]
- name: 'lerna command'
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/release_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,39 @@ jobs:
runs-on: ubuntu-latest
needs: use-check-action
steps:
- name: "Checkout"
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: main

- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: '14'

- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"

- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: 'Install and build'
run: |
yarn
yarn build:prod
- name: 'set username and useEmail'
run: |
git config user.name mengshang918
git config user.email [email protected]
- name: 'lerna command'
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Expand Down

0 comments on commit e4ae9b3

Please sign in to comment.