create renovate.json

This commit is contained in:
Nebel 2022-03-02 16:25:03 +09:00
parent a2ab3501d4
commit 544a55a351
4 changed files with 31 additions and 8 deletions

View file

@ -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
View 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

View file

@ -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
View file

@ -0,0 +1,4 @@
{
"extends": ["config:base", "config:semverAllMonthly"],
"automerge": true
}