This repository has been archived by the owner on Aug 13, 2022. It is now read-only.
generated from c-hive/js-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
854d613
commit 046e64e
Showing
11 changed files
with
1,737 additions
and
1,795 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 @@ | ||
dist |
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: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
env: | ||
node_version: "12.x" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ env.node_version }} | ||
# - uses: c-hive/gha-npm-cache@v1 | ||
- name: Install JS dependencies | ||
run: yarn install | ||
- name: Build | ||
run: yarn run build | ||
- name: Commit and push distified version to master | ||
uses: stefanzweifel/git-auto-commit-action@v4.1.1 | ||
with: | ||
commit_message: 'Update distified version' | ||
file_pattern: 'dist/**/*.js' |
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
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,23 @@ | ||
name: Run | ||
|
||
on: [push] | ||
|
||
env: | ||
node_version: "12.x" | ||
|
||
jobs: | ||
run-action: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ env.node_version }} | ||
- name: Install JS dependencies | ||
run: yarn install | ||
- name: Build | ||
run: yarn build | ||
- name: Run action | ||
uses: ./ |
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
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,11 @@ | ||
name: 'Yarn install cache' | ||
author: 'c-hive' | ||
description: '1-liner yarn install cache for GitHub Actions' | ||
runs: | ||
using: 'node12' | ||
main: 'dist/restore/index.js' | ||
post: 'dist/save/index.js' | ||
post-if: 'success()' | ||
outputs: | ||
cache-hit: | ||
description: 'A boolean value to indicate an exact match was found for the primary key' |
Oops, something went wrong.