Updated build process to produce node_modules

This commit is contained in:
Corey Butler 2023-03-30 21:57:38 -05:00
parent b85cff6798
commit 34b5e3dce7
No known key found for this signature in database
GPG Key ID: 2C6540ABFD72766C
2 changed files with 9 additions and 2 deletions

View File

@ -20,7 +20,14 @@ jobs:
${{ runner.os }}-npm-
run: npm install
- name: Build
uses: npm run prepare
run: |
rm -rf ./dist
npm run prepare
cp ./src/package.json ./dist/
cd ./dist
mkdir -p ./node_modules
npm i
- name: Commit Build Artifacts
run: |
git config --global user.email "actions@github.com"

View File

@ -14,7 +14,7 @@
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"prepare": "esbuild --bundle ./src/main.js --platform=node --outdir=dist"
"prepare": "esbuild --bundle ./src/main.js --platform=node --outdir=dist --external:octokit"
},
"repository": {
"type": "git",