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

Commit

Permalink
Update npm-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
embiem authored Nov 8, 2021
1 parent e2371a2 commit 572959e
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,23 @@ on:
- master

jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2

- name: Install and Build 🔧
run: |
npm install
npm run build
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: demo/dist # The folder the action should deploy.

publish-npm:
runs-on: ubuntu-latest
steps:
Expand All @@ -21,7 +38,6 @@ jobs:
node-version: "12.x"
registry-url: "https://registry.npmjs.org"
- run: npm install
- run: npm run deploy # deploys to gh-pages
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 572959e

Please sign in to comment.