nvm/.github/workflows/toc.yml

38 lines
953 B
YAML
Raw Normal View History

name: update readme TOC
on: [push]
jobs:
_:
permissions:
contents: write
name: "update readme TOC"
runs-on: ubuntu-latest
steps:
2021-11-22 23:20:50 +08:00
- name: Harden Runner
uses: step-security/harden-runner@v1
with:
allowed-endpoints:
github.com:443
registry.npmjs.org:443
2022-10-17 08:51:14 +08:00
- uses: actions/checkout@v3
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/*
2022-10-17 08:51:14 +08:00
- uses: actions/setup-node@v3
with:
2022-10-17 08:51:14 +08:00
node-version: '16'
- run: npm install
- run: npm run doctoc
- name: commit changes
uses: ljharb/actions-js-build/commit@v3+amendpush
with:
amend: true
force: true