Skip to content

Commit 273dce9

Browse files
committed
Updated workflows
1 parent 39709ce commit 273dce9

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

.github/workflows/docs.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish Docs
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
docs:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- uses: actions/setup-node@v2
11+
with:
12+
node-version: '12.x'
13+
registry-url: 'https://npm.pkg.github.com'
14+
scope: '@djthorpe'
15+
- run: npm install
16+
- run: npm run docs
17+
- uses: LuisEnMarroquin/gh-pages-publish@v2.4.4
18+
with:
19+
FOLDER: dist/doc
20+
SSHKEY: ${{ secrets.SSH }}

.github/workflows/publish.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,11 @@ jobs:
1717
- run: npm publish
1818
env:
1919
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
delete:
21+
needs: build
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/delete-package-versions@v1
25+
with:
26+
package-name: js-framework
27+
num-old-versions-to-delete: 1

0 commit comments

Comments
 (0)