Skip to content

Commit 9cff751

Browse files
added repo check + version check with published packages
1 parent 6002540 commit 9cff751

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

.github/workflows/publish-lowcoder-cli.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ name: Publish Lowcoder CLI
55

66
on:
77
push:
8-
branches: [ "dev" ]
8+
branches: [ "worflows-updates" ]
99

1010
jobs:
1111
publish-package:
12+
if: ${{ github.repositoryUrl == 'git@github.com:lowcoder-org/lowcoder.git' }}
1213
runs-on: ubuntu-latest
1314
steps:
1415
- name: Checkout repository
@@ -19,7 +20,9 @@ jobs:
1920
id: check
2021
with:
2122
diff-search: true
23+
static-checking: localIsNew
2224
file-name: client/packages/lowcoder-cli/package.json
25+
file-url: https://unpkg.com/lowcoder-cli@latest/package.json
2326

2427
- name: Version update detected
2528
if: steps.check.outputs.changed == 'true'

.github/workflows/publish-lowcoder-comps.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ name: Publish Lowcoder Comps
55

66
on:
77
push:
8-
branches: [ "dev" ]
8+
branches: [ "worflows-updates" ]
99

1010
jobs:
1111
publish-package:
12+
if: ${{ github.repositoryUrl == 'git@github.com:lowcoder-org/lowcoder.git' }}
1213
runs-on: ubuntu-latest
1314
steps:
1415
- name: Checkout repository
@@ -19,7 +20,9 @@ jobs:
1920
id: check
2021
with:
2122
diff-search: true
23+
static-checking: localIsNew
2224
file-name: client/packages/lowcoder-comps/package.json
25+
file-url: https://unpkg.com/lowcoder-comps@latest/package.json
2326

2427
- name: Version update detected
2528
if: steps.check.outputs.changed == 'true'

.github/workflows/publish-lowcoder-core.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ name: Publish Lowcoder Core
55

66
on:
77
push:
8-
branches: [ "dev" ]
8+
branches: [ "worflows-updates" ]
99

1010
jobs:
1111
publish-package:
12+
if: ${{ github.repositoryUrl == 'git@github.com:lowcoder-org/lowcoder.git' }}
1213
runs-on: ubuntu-latest
1314
steps:
1415
- name: Checkout repository
@@ -19,7 +20,9 @@ jobs:
1920
id: check
2021
with:
2122
diff-search: true
23+
static-checking: localIsNew
2224
file-name: client/packages/lowcoder-core/package.json
25+
file-url: https://unpkg.com/lowcoder-core@latest/package.json
2326

2427
- name: Version update detected
2528
if: steps.check.outputs.changed == 'true'

.github/workflows/publish-lowcoder-sdk.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@ name: Publish Lowcoder SDK
55

66
on:
77
push:
8-
branches: [ "dev" ]
8+
branches: [ "worflows-updates" ]
99

1010
jobs:
1111
publish-package:
12+
if: ${{ github.repositoryUrl == 'git@github.com:lowcoder-org/lowcoder.git' }}
1213
runs-on: ubuntu-latest
1314
steps:
1415
- name: Checkout repository
@@ -19,7 +20,9 @@ jobs:
1920
id: check
2021
with:
2122
diff-search: true
23+
static-checking: localIsNew
2224
file-name: client/packages/lowcoder-sdk/package.json
25+
file-url: https://unpkg.com/lowcoder-sdk@latest/package.json
2326

2427
- name: Version update detected
2528
if: steps.check.outputs.changed == 'true'

0 commit comments

Comments
 (0)