-
Notifications
You must be signed in to change notification settings - Fork 41
44 lines (35 loc) · 915 Bytes
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Build & deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
- name: Install dependencies
run: npm ci --force
- name: Test
run: npm run test
- name: Build
run: npm run build
- name: Build (copy assets)
run: npm run build:copy-assets
- name: Deploy Github Pages
if: success()
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist/elements-demo
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
check-version: true
package: dist/elements/package.json