-
Notifications
You must be signed in to change notification settings - Fork 135
55 lines (43 loc) · 1.12 KB
/
merge.yaml
File metadata and controls
55 lines (43 loc) · 1.12 KB
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
49
50
51
52
53
54
55
name: Merge Example
on:
push:
branches:
- main
paths:
- typescript-project/**
workflow_dispatch:
jobs:
merge:
runs-on: ubuntu-latest
defaults:
run:
working-directory: typescript-project
steps:
- uses: actions/checkout@v2
# Setup Nodejs
- name: Setup Node.js 16
uses: actions/setup-node@v2
with:
node-version: "16.x"
cache: 'npm'
cache-dependency-path: typescript-project/yarn.lock
# Install Yarn
- name: Install Yarn
run: npm install --global yarn
# Install libraries
- name: Install dependencies
run: yarn install --frozen-lockfile
# Run linting
- name: Run linting
run: yarn lint
# Compile the code
- name: Build project
run: yarn build
# Run tests
- name: Run tests
run: yarn test
- run: git config user.email "scottwestover2006@gmail.com"
- run: git config user.name "@github-ci"
- run: yarn version --patch --message "Bump version to %s"
- run: git push
- run: git push --follow-tags