2020-04-30 03:06:01 +08:00
|
|
|
name: update readme TOC
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
_:
|
2021-09-10 14:09:45 +08:00
|
|
|
permissions:
|
|
|
|
contents: write
|
2020-04-30 03:06:01 +08:00
|
|
|
name: "update readme TOC"
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-04-30 06:13:30 +08:00
|
|
|
with:
|
|
|
|
# https://github.com/actions/checkout/issues/217#issue-599945005
|
|
|
|
# pulls all commits (needed for lerna / semantic release to correctly version)
|
|
|
|
fetch-depth: "0"
|
|
|
|
|
|
|
|
# pulls all tags (needed for lerna / semantic release to correctly version)
|
|
|
|
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
|
2021-02-02 06:32:35 +08:00
|
|
|
- uses: actions/setup-node@v2
|
2020-04-30 03:06:01 +08:00
|
|
|
with:
|
|
|
|
node-version: '12.x'
|
|
|
|
- run: npm install
|
|
|
|
- run: npm run doctoc
|
|
|
|
- name: commit changes
|
|
|
|
uses: ljharb/actions-js-build/commit@v3+amendpush
|
|
|
|
with:
|
|
|
|
amend: true
|
|
|
|
force: true
|