Skip to content
This repository was archived by the owner on Aug 1, 2022. It is now read-only.

Commit 572959e

Browse files
authored
Update npm-publish.yml
1 parent e2371a2 commit 572959e

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,23 @@ on:
1111
- master
1212

1313
jobs:
14+
build-and-deploy:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout 🛎️
18+
uses: actions/checkout@v2
19+
20+
- name: Install and Build 🔧
21+
run: |
22+
npm install
23+
npm run build
24+
25+
- name: Deploy 🚀
26+
uses: JamesIves/github-pages-deploy-action@4.1.5
27+
with:
28+
branch: gh-pages # The branch the action should deploy to.
29+
folder: demo/dist # The folder the action should deploy.
30+
1431
publish-npm:
1532
runs-on: ubuntu-latest
1633
steps:
@@ -21,7 +38,6 @@ jobs:
2138
node-version: "12.x"
2239
registry-url: "https://registry.npmjs.org"
2340
- run: npm install
24-
- run: npm run deploy # deploys to gh-pages
2541
- run: npm publish
2642
env:
2743
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)