mirror of
https://github.com/ButlerLogic/action-autotag.git
synced 2024-12-18 04:43:04 +07:00
Updated build process to produce node_modules
This commit is contained in:
parent
b85cff6798
commit
34b5e3dce7
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -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"
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user