Skip to content

Commit 6dfc827

Browse files
committed
main2.md
1 parent 43522cc commit 6dfc827

1 file changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/cd.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,6 @@ jobs:
6161
git config --global user.name 'LongOddCode'
6262
git config --global user.email 'haolong@microsoft.com'
6363
64-
- name: check whether vscode extension changed or not
65-
id: extension-checker
66-
run: |
67-
if npx lerna changed | grep 'lerna-test-pkg4';
68-
then
69-
echo "::set-output name=CHANGED::true"
70-
else
71-
echo "::set-output name=CHANGED::false"
72-
fi
73-
7464
- name: daily release npm packages to npmjs.org
7565
if: ${{ github.event_name == 'schedule' }}
7666
run: |
@@ -101,6 +91,17 @@ jobs:
10191
VERSION=`ls *.vsix | awk -F '.vsix' '{print $1}'`
10292
echo "::set-output name=VERSION::$VERSION"
10393
94+
- name: check whether vscode extension changed or not
95+
id: extension-checker
96+
working-directory: ./packages/p4
97+
run: |
98+
if git diff HEAD^ packages/p4/package.json | grep version;
99+
then
100+
echo "::set-output name=CHANGED::true"
101+
else
102+
echo "::set-output name=CHANGED::false"
103+
fi
104+
104105
- name: release VSCode extension to github
105106
if: ${{ steps.extension-checker.outputs.CHANGED == 'true' || github.event.inputs.force == '--force-publish' }}
106107
uses: marvinpinto/action-automatic-releases@latest

0 commit comments

Comments
 (0)