build: explicitly use npm lts/iron when building package

This commit is contained in:
Lance Edgar 2024-07-02 19:49:25 -05:00
parent a09d50af2c
commit 52b83d05bb
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View file

@ -28,3 +28,4 @@ coverage
*.sw? *.sw?
*.tsbuildinfo *.tsbuildinfo
*~

View file

@ -24,7 +24,7 @@ def release(c):
version = js['version'] version = js['version']
# build the app, create zip archive # build the app, create zip archive
c.run('npm run build') c.run("bash -lc 'nvm use lts/iron; npm run build'")
os.chdir('dist') os.chdir('dist')
filename = f'myweather-{version}.zip' filename = f'myweather-{version}.zip'
c.run(f'zip --recurse-paths {filename} *') c.run(f'zip --recurse-paths {filename} *')