chore: add npm publish
This commit is contained in:
parent
649c2d270c
commit
a804752417
1 changed files with 14 additions and 2 deletions
16
.github/workflows/deploy.yml
vendored
16
.github/workflows/deploy.yml
vendored
|
@ -13,8 +13,20 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
persist-credentials: false
|
persist-credentials: false
|
||||||
|
- name: Setup Node.js
|
||||||
- name: Build and Deploy
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 10
|
||||||
|
- name: NPM Install and Test
|
||||||
|
run: |
|
||||||
|
npm install
|
||||||
|
npm run test
|
||||||
|
npm run build
|
||||||
|
- name: Publish
|
||||||
|
uses: JS-DevTools/npm-publish@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.NPM_TOKEN }}
|
||||||
|
- name: Deploy to gh-pages
|
||||||
uses: JamesIves/github-pages-deploy-action@releases/v3
|
uses: JamesIves/github-pages-deploy-action@releases/v3
|
||||||
with:
|
with:
|
||||||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue