Update main.yml
This commit is contained in:
parent
b4bf032e6d
commit
50ed07fd74
8
.github/workflows/main.yml
vendored
8
.github/workflows/main.yml
vendored
@ -1,9 +1,7 @@
|
|||||||
name: Publish NPM package + Docs
|
name: Publish NPM package + Docs
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [created]
|
types: [created]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish_npm:
|
publish_npm:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -36,7 +34,6 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
- name: Delete the docs directory
|
- name: Delete the docs directory
|
||||||
run: rm -rf ./docs
|
run: rm -rf ./docs
|
||||||
|
|
||||||
@ -50,12 +47,9 @@ jobs:
|
|||||||
- name: Generate docs
|
- name: Generate docs
|
||||||
run: npx typedoc
|
run: npx typedoc
|
||||||
|
|
||||||
- name: Moving to docs folder
|
|
||||||
run: cd docs/
|
|
||||||
|
|
||||||
- name: Publish docs
|
- name: Publish docs
|
||||||
uses: EndBug/add-and-commit@v7
|
uses: EndBug/add-and-commit@v7
|
||||||
with:
|
with:
|
||||||
add: "*"
|
cwd: ./docs
|
||||||
default_author: github_actions
|
default_author: github_actions
|
||||||
message: "Automated docs update"
|
message: "Automated docs update"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user