Skip to content

Commit 8e5feec

Browse files
authored
chore: adjust publish action (#2135)
1 parent 7acb20f commit 8e5feec

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ jobs:
3636
main-branch-name: 'master'
3737
- name: publish
3838
run: |
39-
yarn package
39+
node ./tools/scripts/clear-dist.js
40+
npx nx run vscode:package --skip-nx-cache
4041
yarn vsce publish --packagePath dist/apps/vscode/nx-console.vsix -p ${{ secrets.VSCE_PAT }}
4142
yarn ovsx publish dist/apps/vscode/nx-console.vsix -p ${{ secrets.OVSX_PAT }}
4243
- name: release

apps/generate-ui-v2/src/form-values.service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export class FormValuesService {
111111
if (!schema) return {};
112112
const options = schema.options;
113113
const errors: Record<string, boolean | string> = {};
114+
114115
Object.entries(formValues).forEach(([key, value]) => {
115116
const option = options.find((option) => option.name === key);
116117
if (!option) return;

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"scripts": {
1212
"nx": "NODE_OPTIONS=--max-old-space-size=4096 && nx",
1313
"watch": "nx watch-all vscode",
14-
"package": "node ./tools/scripts/clear-dist.js && nx package vscode",
1514
"e2e": "nx e2e vscode-e2e",
1615
"update": "nx migrate latest"
1716
},
@@ -150,4 +149,4 @@
150149
"nx": {
151150
"includedScripts": []
152151
}
153-
}
152+
}

0 commit comments

Comments
 (0)