Skip to content

Commit

Permalink
Merge pull request #17 from pinanks/DOT-2154
Browse files Browse the repository at this point in the history
DOT-2154
  • Loading branch information
pinanks authored Nov 25, 2023
2 parents 78acb8a + 9f8d03a commit 3911436
Show file tree
Hide file tree
Showing 52 changed files with 3,295 additions and 2,947 deletions.
69 changes: 24 additions & 45 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,53 +1,32 @@
name: Publish SmartUI CLI packages
name: Build and Publish

on:
release:
types: [published]

jobs:
build:
if: startsWith(github.ref, 'refs/tags/prod-')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
- run: npm install

publish-npm:
needs: build
build-and-publish:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16.x
registry-url: https://registry.npmjs.org/

- name: Publish Core Package
run: |
ls -la
cd packages/core
npm install
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: Publish CLI Package
run: |
ls -la
cd packages/cli
npm install
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: Publish Logger Package
run: |
ls -la
cd packages/logger
npm install
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Check out code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'

- name: Install pnpm
run: npm install -g pnpm

- name: Install dependencies
run: pnpm install

- name: Release the package
run: pnpm run release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}


2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules
.DS_Store
dist
1 change: 0 additions & 1 deletion package.json

This file was deleted.

42 changes: 42 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"name": "@lambdatest/smartui-cli",
"version": "2.0.0",
"description": "A command line interface (CLI) to run SmartUI tests on LambdaTest",
"files": [
"dist/**/*"
],
"scripts": {
"build": "tsup",
"release": "pnpm run build && pnpm publish --access public"
},
"bin": {
"smartui": "./dist/index.cjs"
},
"type": "module",
"keywords": [
"lambdatest",
"smartui",
"cli"
],
"author": "LambdaTest <[email protected]>",
"license": "MIT",
"dependencies": {
"@types/cross-spawn": "^6.0.4",
"@types/node": "^20.8.9",
"@types/which": "^3.0.2",
"axios": "^1.6.0",
"chalk": "^4.1.2",
"commander": "^11.1.0",
"cross-spawn": "^7.0.3",
"fastify": "^4.24.3",
"form-data": "^4.0.0",
"listr2": "^7.0.1",
"playwright": "^1.39.0",
"tsup": "^7.2.0",
"which": "^4.0.0",
"winston": "^3.10.0"
},
"devDependencies": {
"typescript": "^5.3.2"
}
}
Loading

0 comments on commit 3911436

Please sign in to comment.