-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (39 loc) · 1.18 KB
/
release-preview.yaml
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
name: Release Preview
on:
pull_request:
branches:
- main
jobs:
release-preview:
runs-on: ubuntu-latest
steps:
- name: Setup Repo
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "16.13"
- name: Setup Pnpm
uses: pnpm/action-setup@v2.0.1
with:
version: "6.7"
run_install: true
- id: get_increment
name: Get Increment
uses: ChocolateLoverRaj/detect-increment@v1.2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: capitalize_increment
name: Capitalize Increment
uses: ASzc/change-string-case-action@v2
with:
string: ${{ steps.get_increment.outputs.increment }}
- name: Update Pull Request Labels
uses: ChocolateLoverRaj/label-manager@v1.0
with:
manage: '["Semver Increment: None","Semver Increment: Patch","Semver
Increment: Minor","Semver Increment: Major"]'
set: '["Semver Increment: ${{
steps.capitalize_increment.outputs.capitalized }}"]'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}