-
Notifications
You must be signed in to change notification settings - Fork 3
28 lines (28 loc) · 923 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Release
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check release type
id: is-minor-release
uses: shioyang/check-pr-labels-on-push-action@v1.0.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
labels: '["minor"]'
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- run: yarn install
- run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
- run: yarn release patch --npm.skipChecks
if: steps.is-minor-release.outputs.result == 'false'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: yarn release minor --npm.skipChecks
if: steps.is-minor-release.outputs.result == 'true'