Skip to content

Commit 3a8bde3

Browse files
committed
ci(release/build): add initial build and release ci
1 parent a5d02c3 commit 3a8bde3

File tree

4 files changed

+104
-0
lines changed

4 files changed

+104
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Bug Report
3+
about: Create a bug report to help solve an issue
4+
title: 'Bug: TITLE'
5+
labels: New Issue
6+
assignees: ''
7+
---
8+
9+
**Describe the issue**
10+
11+
A clear and concise description of what the bug is.
12+
13+
**Expected behavior**
14+
15+
A clear and concise description of what you expected to happen.
16+
17+
**To Reproduce**
18+
19+
Steps to reproduce the behavior:
20+
1. Go to '...'
21+
2. Click on '....'
22+
3. Scroll down to '....'
23+
4. See error
24+
25+
26+
**Media**
27+
28+
If applicable, add a screenshot or a video to help explain your problem.
29+
30+
**Needed information (please complete the following information):**
31+
- **Client Version:**: [e.g. Canary or Release]
32+
- **Template Version**: [e.g. 3486] Don't know?~~Check the version in your package.json~~
33+
34+
**Additional context**
35+
Add any other context about the issue here.

.github/dependabot.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: web
5+
open-pull-requests-limit: 5
6+
schedule:
7+
interval: daily

.github/workflows/ci.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Main CI
2+
on: [push, pull_request]
3+
jobs:
4+
build:
5+
name: Build Test
6+
runs-on: ubuntu-latest
7+
defaults:
8+
run:
9+
working-directory: web
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
- name: Setup node environment
15+
uses: actions/setup-node@v2
16+
with:
17+
node-version: 14.x
18+
- name: Get yarn cache directory path
19+
id: yarn-cache-dir-path
20+
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
21+
- uses: actions/cache@v2
22+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
23+
with:
24+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
25+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
26+
restore-keys: |
27+
${{ runner.os }}-yarn-
28+
- name: Install deps
29+
run: yarn --frozen-lockfile
30+
- name: Try build
31+
run: yarn build
32+

.github/workflows/release.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Tagged Release
2+
on:
3+
push:
4+
tags:
5+
- "v*"
6+
jobs:
7+
create-tagged-release:
8+
name: Create Release
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout source
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
ref: ${{ github.ref }}
16+
- name: Get tag
17+
run: echo ::set-output name=VERSION_TAG::${GITHUB_REF/refs\/tags\//}
18+
id: get_tag
19+
- name: 'Setup Node.js'
20+
uses: 'actions/setup-node@v1'
21+
with:
22+
node-version: 14.x
23+
- name: Create release
24+
uses: marvinpinto/action-automatic-releases@latest
25+
with:
26+
title: React/Lua Boilerplate - ${{ steps.get_tag.outputs.VERSION_TAG }}
27+
repo_token: ${{ secrets.GITHUB_TOKEN }}
28+
prerelease: false
29+
id: auto_release
30+

0 commit comments

Comments
 (0)