File tree 2 files changed +44
-2
lines changed
client/packages/lowcoder-cli
2 files changed +44
-2
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
+ # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
+
4
+ name : Publish Lowcoder Comps
5
+
6
+ on :
7
+ push :
8
+ branches : [ "publish-comps-workflow" ]
9
+
10
+ jobs :
11
+ publish-package :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Checkout repository
15
+ uses : actions/checkout@v3
16
+
17
+ - name : Check version changes
18
+ uses : EndBug/version-check@v1
19
+ id : check
20
+ with :
21
+ diff-search : true
22
+ file-name : client/packages/lowcoder-cli/package.json
23
+
24
+ - name : Version update detected
25
+ if : steps.check.outputs.changed == 'true'
26
+ run : ' echo "Version change found! New version: ${{ steps.check.outputs.version }} (${{ steps.check.outputs.type }})"'
27
+
28
+ - name : Set up Node.js for NPM
29
+ if : steps.check.outputs.changed == 'true'
30
+ uses : actions/setup-node@v3
31
+ with :
32
+ node-version : 16
33
+ registry-url : https://registry.npmjs.org/
34
+
35
+ - name : Publish
36
+ if : steps.check.outputs.changed == 'true'
37
+ uses : borales/actions-yarn@v4.2.0
38
+ with :
39
+ cmd : npm publish
40
+ dir : client/packages/lowcoder-cli
41
+ env :
42
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " lowcoder -cli" ,
2
+ "name" : " raheel-lc -cli" ,
3
3
"description" : " CLI tool used to start build publish lowcoder components" ,
4
- "version" : " 0.0.27 " ,
4
+ "version" : " 0.0.28 " ,
5
5
"license" : " MIT" ,
6
6
"bin" : " ./index.js" ,
7
7
"type" : " module" ,
You can’t perform that action at this time.
0 commit comments