forked from allegro/turnilo
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.25 KB
/
release-beta.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Release Beta
on:
workflow_dispatch:
inputs:
increment:
description: 'Defines which part of a SemVer should be increased during the release process, e.g "major", "minor", "patch" or empty for consecutive release'
required: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# changelog is generated from git log
fetch-depth: 0
# release must bypass branch protection rules, built-in GITHUB_TOKEN doesn't work
token: ${{ secrets.RELEASE_GH_TOKEN }}
- uses: ./.github/actions/setup
- run: npm run lint
- run: npm run build
- run: npm run test
- run: npm run e2e
- name: Configure GIT
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Install release-it
run: npm install -g [email protected]
- name: Beta Release
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_USERCONFIG: .npmrc-publish
run: |
release-it ${{ github.event.inputs.increment }} --preRelease=beta --ci