mirror of
https://github.com/kou029w/hasura-rest-hands-on.git
synced 2025-01-18 08:05:12 +00:00
create renovate.json
This commit is contained in:
parent
a2ab3501d4
commit
544a55a351
4 changed files with 31 additions and 8 deletions
|
@ -1,12 +1,17 @@
|
|||
name: github-pages
|
||||
on:
|
||||
push:
|
||||
workflow_run:
|
||||
branches: [main]
|
||||
workflows: [test]
|
||||
types: [completed]
|
||||
jobs:
|
||||
main:
|
||||
if: github.event.workflow_run.conclusion == 'success'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with: { node-version: lts/*, cache: yarn }
|
||||
- id: brew_cache
|
||||
run: echo "::set-output name=dir::$(brew --cache)"
|
||||
- uses: actions/cache@v2
|
||||
|
@ -14,16 +19,19 @@ jobs:
|
|||
path: ${{ steps.brew_cache.outputs.dir }}
|
||||
key: brew-${{ hashFiles('**/Brewfile.lock.json') }}
|
||||
restore-keys: brew-
|
||||
- uses: actions/setup-node@v2
|
||||
with: { node-version: lts/*, cache: yarn }
|
||||
- name: Git config
|
||||
run: |
|
||||
git config user.name bot
|
||||
git config user.email bot@example
|
||||
- run: git subtree add --prefix book origin gh-pages
|
||||
- run: brew bundle
|
||||
- run: yarn
|
||||
- run: yarn build
|
||||
git subtree add --prefix book origin gh-pages
|
||||
- name: Build assets
|
||||
run: |
|
||||
yarn install
|
||||
yarn build
|
||||
- name: Build book
|
||||
run: |
|
||||
brew bundle
|
||||
mdbook build
|
||||
- name: Publish
|
||||
run: |
|
||||
git add -f book
|
11
.github/workflows/test.yml
vendored
Normal file
11
.github/workflows/test.yml
vendored
Normal file
|
@ -0,0 +1,11 @@
|
|||
name: test
|
||||
on: push
|
||||
jobs:
|
||||
main:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/setup-node@v2
|
||||
with: { node-version: lts/*, cache: yarn }
|
||||
- run: yarn
|
||||
- run: yarn build
|
|
@ -3,7 +3,7 @@
|
|||
"version": "1.0.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "esbuild src/*.js --outdir=theme --platform=browser --bundle --minify && mdbook build"
|
||||
"build": "esbuild src/*.js --outdir=theme --platform=browser --bundle --minify"
|
||||
},
|
||||
"devDependencies": {
|
||||
"esbuild": "^0.12.15",
|
||||
|
|
4
renovate.json
Normal file
4
renovate.json
Normal file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"extends": ["config:base", "config:semverAllMonthly"],
|
||||
"automerge": true
|
||||
}
|
Loading…
Add table
Reference in a new issue