Move cache save to runs.post and exit early (#60)

This commit is contained in:
Andy Palmer 2024-02-16 22:14:07 +00:00 committed by GitHub
parent 12944059f7
commit 0f37bd8169
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 139 additions and 44 deletions

View file

@ -18,8 +18,8 @@
"author": "xHyroM",
"scripts": {
"format": "prettier --write src *.yml *.json *.md",
"build": "esbuild --target=node20 --outdir=dist --bundle --minify --platform=node --format=cjs src/index.ts",
"start": "npm run build && node dist/index.js"
"build": "esbuild --target=node20 --outfile=dist/setup/index.js --bundle --minify --platform=node --format=cjs src/index.ts && esbuild --target=node20 --outfile=dist/cache-save/index.js --bundle --minify --platform=node --format=cjs src/cache-save.ts",
"start": "npm run build && node dist/setup/index.js"
},
"dependencies": {
"@actions/cache": "^3.1.4",