-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (40 loc) · 1.12 KB
/
build-test-deploy-main.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
name: build-test-deploy-main
on:
push:
branches:
- main
jobs:
build-test-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '18'
- name: Install Dependencies
id: installdeps
run: npm ci
- name: Build Projects
id: buildproj
run: npm run build
- name: Check Circular Refs
id: circularrefs
run: npx dpdm -T --warning false **/index.ts
- name: Run Unit Tests
id: unittest
run: npm run test
- name: Run Functional Tests
id: functionaltest
run: npm run test:examples
env:
browserstack_user: ${{ secrets.BROWSERSTACK_USER }}
browserstack_key: ${{ secrets.BROWSERSTACK_KEY }}
- name: Update NPM Credentials File
id: updatecredsfile
run: cp .npmrc-publish ~/.npmrc
- name: Publish to NPM
id: publishpackages
run: npx lerna publish from-package --yes
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_USER: ${{ secrets.NPM_USER }}