Skip to content

Commit d89ad6b

Browse files
authored
Merge pull request #234 from sushobhit-lt/stage
update ci to release beta
2 parents b8a5196 + fd9935c commit d89ad6b

File tree

2 files changed

+18
-4
lines changed

2 files changed

+18
-4
lines changed

.github/workflows/release.yaml

+17-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,23 @@ jobs:
2727
- name: Install dependencies
2828
run: pnpm install
2929

30-
- name: Release the package
31-
run: pnpm run release
30+
- name: Check if beta release
31+
id: check-beta
32+
run: |
33+
if [[ ${{ github.ref_name }} =~ -beta ]]; then
34+
echo "IS_BETA=true" >> $GITHUB_OUTPUT
35+
else
36+
echo "IS_BETA=false" >> $GITHUB_OUTPUT
37+
fi
38+
39+
- name: Release beta package
40+
if: steps.check-beta.outputs.IS_BETA == 'true'
41+
run: pnpm run release:beta
3242
env:
3343
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3444

35-
45+
- name: Release stable package
46+
if: steps.check-beta.outputs.IS_BETA == 'false'
47+
run: pnpm run release
48+
env:
49+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lambdatest/smartui-cli",
3-
"version": "4.1.2",
3+
"version": "4.1.2-beta.0",
44
"description": "A command line interface (CLI) to run SmartUI tests on LambdaTest",
55
"files": [
66
"dist/**/*"

0 commit comments

Comments
 (0)