mirror of
https://github.com/ryanccn/attic-action.git
synced 2024-11-19 22:16:35 +00:00
merge steps
This commit is contained in:
parent
ac59a1f6d5
commit
5f586db5bc
6 changed files with 7 additions and 22 deletions
|
@ -20,4 +20,3 @@ outputs:
|
||||||
runs:
|
runs:
|
||||||
using: "node16"
|
using: "node16"
|
||||||
main: "dist/index.js"
|
main: "dist/index.js"
|
||||||
post: "dist/post.js"
|
|
||||||
|
|
8
dist/index.js
vendored
8
dist/index.js
vendored
File diff suppressed because one or more lines are too long
8
dist/post.js
vendored
8
dist/post.js
vendored
File diff suppressed because one or more lines are too long
|
@ -3,7 +3,7 @@
|
||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "Cache Nix derivations with attic",
|
"description": "Cache Nix derivations with attic",
|
||||||
"scripts": {
|
"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": [],
|
"keywords": [],
|
||||||
"author": "Ryan Cao <hello@ryanccn.dev>",
|
"author": "Ryan Cao <hello@ryanccn.dev>",
|
||||||
|
|
|
@ -1,9 +1,11 @@
|
||||||
import { install } from "./stages/install";
|
import { install } from "./stages/install";
|
||||||
import { configure } from "./stages/configure";
|
import { configure } from "./stages/configure";
|
||||||
|
import { push } from "./stages/push";
|
||||||
|
|
||||||
(async () => {
|
(async () => {
|
||||||
await install();
|
await install();
|
||||||
await configure();
|
await configure();
|
||||||
|
await push();
|
||||||
})().catch((e) => {
|
})().catch((e) => {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
import { push } from "./stages/push";
|
|
||||||
|
|
||||||
(async () => {
|
|
||||||
await push();
|
|
||||||
})().catch((e) => {
|
|
||||||
console.error(e);
|
|
||||||
process.exit(1);
|
|
||||||
});
|
|
Loading…
Reference in a new issue