Skip to content

Commit 1541275

Browse files
authored
Merge pull request #2 from LambdaTest/stage
Release v1.0.2
2 parents 05c35e6 + c624745 commit 1541275

File tree

16 files changed

+386
-146
lines changed

16 files changed

+386
-146
lines changed

.github/workflows/release.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Publish SmartUI CLI packages
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
if: startsWith(github.ref, 'refs/tags/prod-')
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v2
14+
with:
15+
node-version: 16.x
16+
- run: npm install
17+
18+
publish-npm:
19+
needs: build
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v2
23+
- uses: actions/setup-node@v2
24+
with:
25+
node-version: 16.x
26+
registry-url: https://registry.npmjs.org/
27+
28+
- name: Publish Core Package
29+
run: |
30+
ls -la
31+
cd packages/core
32+
npm install
33+
npm publish --access public
34+
env:
35+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
36+
37+
- name: Publish CLI Package
38+
run: |
39+
ls -la
40+
cd packages/cli
41+
npm install
42+
npm publish --access public
43+
env:
44+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
45+
46+
- name: Publish Logger Package
47+
run: |
48+
ls -la
49+
cd packages/logger
50+
npm install
51+
npm publish --access public
52+
env:
53+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,17 @@ npm run capture
2727
```
2828
npm run capture-with-deafult-config
2929
```
30+
31+
### To Create Web config for multiple browser and viewports
32+
```
33+
npm run config:create-web
34+
or
35+
npm run config:create-web smartui-web.json
36+
```
37+
38+
### To Create Static config for multiple URLs
39+
```
40+
npm run config:web-static
41+
or
42+
npm run config:web-static urls.json
43+
```

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
packages/core/package.json
1+
packages/cli/package.json

0 commit comments

Comments
 (0)