-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(release/build): add initial build and release ci
- Loading branch information
1 parent
a5d02c3
commit 3a8bde3
Showing
4 changed files
with
104 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|