Run the build process when a new version is created. Ignore the build artifacts

This commit is contained in:
Kossi D. T. Saka 2023-01-25 07:24:14 +01:00
parent 0274e7a26e
commit 486f83a9f1
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@ -8,9 +8,10 @@
# npm
node_modules
# Don't include the compiled main.js file in the repo.
# Don't include the build artifacts in the repo.
# They should be uploaded to GitHub releases instead.
main.js
dist/
# Exclude sourcemaps
*.map

View File

@ -6,7 +6,7 @@
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json"
"version": "node version-bump.mjs && npm run build && git add manifest.json versions.json"
},
"keywords": [],
"author": "",