-
Notifications
You must be signed in to change notification settings - Fork 41
48 lines (45 loc) · 1.27 KB
/
version.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
44
45
46
47
48
name: Version
on:
push:
branches:
- "main"
workflow_dispatch:
env:
COMMIT_USER: Hiro DevOps
COMMIT_EMAIL: [email protected]
jobs:
code_checks:
name: Code checks
if: "!contains(github.event.head_commit.message, 'chore: version packages')"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "yarn"
- name: Code Checks
uses: ./.github/actions/code-checks
version:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'chore: version packages')"
needs: [code_checks]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "yarn"
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Create Release Pull Request
uses: changesets/action@e9cc34b540dd3ad1b030c57fd97269e8f6ad905a
with:
title: "chore: version packages"
commit: "chore: version packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}