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 name: github-pages
on: on:
push: workflow_run:
branches: [main] branches: [main]
workflows: [test]
types: [completed]
jobs: jobs:
main: main:
if: github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-node@v2
with: { node-version: lts/*, cache: yarn }
- id: brew_cache - id: brew_cache
run: echo "::set-output name=dir::$(brew --cache)" run: echo "::set-output name=dir::$(brew --cache)"
- uses: actions/cache@v2 - uses: actions/cache@v2
@ -14,16 +19,19 @@ jobs:
path: ${{ steps.brew_cache.outputs.dir }} path: ${{ steps.brew_cache.outputs.dir }}
key: brew-${{ hashFiles('**/Brewfile.lock.json') }} key: brew-${{ hashFiles('**/Brewfile.lock.json') }}
restore-keys: brew- restore-keys: brew-
- uses: actions/setup-node@v2
with: { node-version: lts/*, cache: yarn }
- name: Git config - name: Git config
run: | run: |
git config user.name bot git config user.name bot
git config user.email bot@example git config user.email bot@example
- run: git subtree add --prefix book origin gh-pages git subtree add --prefix book origin gh-pages
- run: brew bundle - name: Build assets
- run: yarn run: |
- run: yarn build yarn install
yarn build
- name: Build book
run: |
brew bundle
mdbook build
- name: Publish - name: Publish
run: | run: |
git add -f book 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", "version": "1.0.0",
"private": true, "private": true,
"scripts": { "scripts": {
"build": "esbuild src/*.js --outdir=theme --platform=browser --bundle --minify && mdbook build" "build": "esbuild src/*.js --outdir=theme --platform=browser --bundle --minify"
}, },
"devDependencies": { "devDependencies": {
"esbuild": "^0.12.15", "esbuild": "^0.12.15",

4
renovate.json Normal file
View file

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