2022-02-21 19:37:10 +08:00
|
|
|
name: Release
|
2022-02-21 16:04:26 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
2022-02-21 19:37:10 +08:00
|
|
|
- 'v*'
|
2022-02-21 16:04:26 +08:00
|
|
|
|
|
|
|
jobs:
|
2022-02-21 19:37:10 +08:00
|
|
|
release:
|
2022-02-21 16:04:26 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-02-21 19:37:10 +08:00
|
|
|
- uses: actions/checkout@v2
|
2022-02-21 16:04:26 +08:00
|
|
|
with:
|
2022-02-21 19:37:10 +08:00
|
|
|
fetch-depth: 0
|
2022-02-21 20:31:42 +08:00
|
|
|
|
|
|
|
- name: use Node.js 16
|
|
|
|
uses: actions/setup-node@v2.1.2
|
2022-02-21 20:09:27 +08:00
|
|
|
with:
|
2022-02-21 20:31:42 +08:00
|
|
|
node-version: '16.x'
|
|
|
|
|
|
|
|
- name: Get yarn cache
|
|
|
|
id: yarn-cache
|
|
|
|
run: echo "::set-output name=dir::$(yarn cache dir)"
|
|
|
|
|
|
|
|
- name: Cache dependencies
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ${{ steps.yarn-cache.outputs.dir }}
|
|
|
|
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-yarn-
|
|
|
|
|
|
|
|
- run: yarn install
|
2022-02-21 20:24:37 +08:00
|
|
|
- run: npm run github-release
|
2022-02-21 19:37:10 +08:00
|
|
|
env:
|
2022-02-21 20:04:18 +08:00
|
|
|
CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{secrets.ACTIONS_DEPLOY_KEY}}
|