Skip to content

Commit

Permalink
ci(release/build): add initial build and release ci
Browse files Browse the repository at this point in the history
  • Loading branch information
TasoOneAsia committed Jul 8, 2021
1 parent a5d02c3 commit 3a8bde3
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Bug Report
about: Create a bug report to help solve an issue
title: 'Bug: TITLE'
labels: New Issue
assignees: ''
---

**Describe the issue**

A clear and concise description of what the bug is.

**Expected behavior**

A clear and concise description of what you expected to happen.

**To Reproduce**

Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error


**Media**

If applicable, add a screenshot or a video to help explain your problem.

**Needed information (please complete the following information):**
- **Client Version:**: [e.g. Canary or Release]
- **Template Version**: [e.g. 3486] Don't know?~~Check the version in your package.json~~

**Additional context**
Add any other context about the issue here.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2
updates:
- package-ecosystem: npm
directory: web
open-pull-requests-limit: 5
schedule:
interval: daily
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Main CI
on: [push, pull_request]
jobs:
build:
name: Build Test
runs-on: ubuntu-latest
defaults:
run:
working-directory: web

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node environment
uses: actions/setup-node@v2
with:
node-version: 14.x
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install deps
run: yarn --frozen-lockfile
- name: Try build
run: yarn build

30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Tagged Release
on:
push:
tags:
- "v*"
jobs:
create-tagged-release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.ref }}
- name: Get tag
run: echo ::set-output name=VERSION_TAG::${GITHUB_REF/refs\/tags\//}
id: get_tag
- name: 'Setup Node.js'
uses: 'actions/setup-node@v1'
with:
node-version: 14.x
- name: Create release
uses: marvinpinto/action-automatic-releases@latest
with:
title: React/Lua Boilerplate - ${{ steps.get_tag.outputs.VERSION_TAG }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: false
id: auto_release

0 comments on commit 3a8bde3

Please sign in to comment.