Skip to content

Commit

Permalink
👷 chore: 更新 release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed Feb 2, 2022
1 parent d580e52 commit 88a65a4
Showing 1 changed file with 15 additions and 10 deletions.
25 changes: 15 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,34 @@ on:
branches:
- master
- beta
- user-panel
- feat/*

jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/setup-node@v2.1.2

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
node-version: '14'
version: 6

- uses: c-hive/gha-yarn-cache@v1
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'pnpm'

- name: install
run: yarn
- name: Install deps
run: pnpm install

- name: Test
run: yarn test
- name: test
run: pnpm run cov

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn release
run: pnpm run release

0 comments on commit 88a65a4

Please sign in to comment.