File tree Expand file tree Collapse file tree 2 files changed +50
-1
lines changed
client/packages/lowcoder-core Expand file tree Collapse file tree 2 files changed +50
-1
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 Core
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-core/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 : Install dependencies
36+ if : steps.check.outputs.changed == 'true'
37+ uses : borales/actions-yarn@v4.2.0
38+ with :
39+ cmd : install
40+ dir : client/packages/lowcoder-core
41+
42+ - name : Publish
43+ if : steps.check.outputs.changed == 'true'
44+ uses : borales/actions-yarn@v4.2.0
45+ with :
46+ cmd : build_publish
47+ dir : client/packages/lowcoder-core
48+ env :
49+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 11{
22 "name" : " lowcoder-core" ,
3- "version" : " 0.0.9 " ,
3+ "version" : " 0.0.10 " ,
44 "type" : " module" ,
55 "scripts" : {
66 "start" : " rollup -c rollup.config.js --watch" ,
You can’t perform that action at this time.
0 commit comments