Skip to content

Commit ff6fe9b

Browse files
committed
correct poetry npm script
1 parent 47a8766 commit ff6fe9b

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
if: always()
100100

101101
package:
102-
needs: [code-quality, test]
102+
#needs: [code-quality, test]
103103

104104
runs-on: ubuntu-latest
105105

@@ -130,7 +130,7 @@ jobs:
130130
run: npm install --also=dev
131131

132132
- name: package
133-
run: poetry run npm package
133+
run: poetry run npm run package
134134

135135
- name: Upload VSCode package
136136
uses: actions/upload-artifact@v2
@@ -195,7 +195,7 @@ jobs:
195195

196196
- name: get release notes
197197
id: get_release_notes
198-
run: echo "::set-output name=release_notes::$(poetry run npm extract-release-notes)"
198+
run: echo "::set-output name=release_notes::$(poetry run npm run extract-release-notes)"
199199

200200
- name: find assets
201201
id: find_assets
@@ -255,7 +255,7 @@ jobs:
255255
asset_content_type: application/whl
256256

257257
- name: publish vsix and python packages
258-
run: poetry run npm publish
258+
run: poetry run npm run publish
259259
env:
260260
VSCE_PAT: ${{ secrets.VSCE_PAT }}
261261
OVSX_PAT: ${{ secrets.OVSX_PAT }}

scripts/npm.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
from subprocess import run
33

44

5-
def main() -> None:
6-
run(f"npm run {' '.join(sys.argv[1:])}", shell=True).check_returncode()
5+
def main() -> int:
6+
args = f"npm {' '.join(sys.argv[1:])}"
7+
return run(args, shell=True).returncode
78

89

910
if __name__ == "__main__":

0 commit comments

Comments
 (0)