merge steps

This commit is contained in:
Ryan Cao 2023-07-18 22:21:33 +08:00
parent ac59a1f6d5
commit 5f586db5bc
No known key found for this signature in database
6 changed files with 7 additions and 22 deletions

View file

@ -20,4 +20,3 @@ outputs:
runs:
using: "node16"
main: "dist/index.js"
post: "dist/post.js"

8
dist/index.js vendored

File diff suppressed because one or more lines are too long

8
dist/post.js vendored

File diff suppressed because one or more lines are too long

View file

@ -3,7 +3,7 @@
"version": "0.1.0",
"description": "Cache Nix derivations with attic",
"scripts": {
"build": "esbuild src/index.ts src/post.ts --outdir=dist --platform=node --format=cjs --bundle --minify-whitespace --minify-syntax"
"build": "esbuild src/index.ts --outdir=dist --platform=node --format=cjs --bundle --minify-whitespace --minify-syntax"
},
"keywords": [],
"author": "Ryan Cao <hello@ryanccn.dev>",

View file

@ -1,9 +1,11 @@
import { install } from "./stages/install";
import { configure } from "./stages/configure";
import { push } from "./stages/push";
(async () => {
await install();
await configure();
await push();
})().catch((e) => {
console.error(e);
process.exit(1);

View file

@ -1,8 +0,0 @@
import { push } from "./stages/push";
(async () => {
await push();
})().catch((e) => {
console.error(e);
process.exit(1);
});