-
Notifications
You must be signed in to change notification settings - Fork 757
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: Node.js CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
generate-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
- run: npm ci | ||
- run: npm run docs | ||
- name: Do git actions | ||
run: | | ||
git config user.email "[email protected]" | ||
git config user.name "Docs Bot" | ||
git add --force -- docs/README.md | ||
git commit -m "docs: add generated docs" | ||
git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,10 @@ on: | |
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
|
@@ -19,19 +23,3 @@ jobs: | |
- run: npm ci | ||
- run: npm run build --if-present | ||
- run: npm test | ||
generate-docs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14.x | ||
- run: npm ci | ||
- run: npm run docs | ||
- name: Do git actions | ||
run: | | ||
git config user.email "[email protected]" | ||
git config user.name "Docs Bot" | ||
git add --force -- docs/README.md | ||
git commit -m "docs: add generated docs" | ||
git push |