Skip to content

Commit 1069c13

Browse files
authored
Merge pull request #18 from LambdaTest/stage
Release v2.0.0
2 parents 9668f40 + 3911436 commit 1069c13

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+3295
-2947
lines changed

.github/workflows/release.yaml

Lines changed: 24 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,32 @@
1-
name: Publish SmartUI CLI packages
1+
name: Build and Publish
22

33
on:
44
release:
55
types: [published]
66

77
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
8+
build-and-publish:
209
runs-on: ubuntu-latest
10+
2111
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}}
12+
- name: Check out code
13+
uses: actions/checkout@v3
14+
15+
- name: Set up Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '16'
19+
registry-url: 'https://registry.npmjs.org'
20+
21+
- name: Install pnpm
22+
run: npm install -g pnpm
23+
24+
- name: Install dependencies
25+
run: pnpm install
26+
27+
- name: Release the package
28+
run: pnpm run release
29+
env:
30+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
32+

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
node_modules
2-
.DS_Store
2+
dist

package.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"name": "@lambdatest/smartui-cli",
3+
"version": "2.0.0",
4+
"description": "A command line interface (CLI) to run SmartUI tests on LambdaTest",
5+
"files": [
6+
"dist/**/*"
7+
],
8+
"scripts": {
9+
"build": "tsup",
10+
"release": "pnpm run build && pnpm publish --access public"
11+
},
12+
"bin": {
13+
"smartui": "./dist/index.cjs"
14+
},
15+
"type": "module",
16+
"keywords": [
17+
"lambdatest",
18+
"smartui",
19+
"cli"
20+
],
21+
"author": "LambdaTest <[email protected]>",
22+
"license": "MIT",
23+
"dependencies": {
24+
"@types/cross-spawn": "^6.0.4",
25+
"@types/node": "^20.8.9",
26+
"@types/which": "^3.0.2",
27+
"axios": "^1.6.0",
28+
"chalk": "^4.1.2",
29+
"commander": "^11.1.0",
30+
"cross-spawn": "^7.0.3",
31+
"fastify": "^4.24.3",
32+
"form-data": "^4.0.0",
33+
"listr2": "^7.0.1",
34+
"playwright": "^1.39.0",
35+
"tsup": "^7.2.0",
36+
"which": "^4.0.0",
37+
"winston": "^3.10.0"
38+
},
39+
"devDependencies": {
40+
"typescript": "^5.3.2"
41+
}
42+
}

0 commit comments

Comments
 (0)