Skip to content

Commit

Permalink
Fix seed envvar export for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ar committed Dec 14, 2023
1 parent 075a966 commit 69795bd
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/composedb/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: clean clean-test start-test-env kill-test-env
.PHONY: generate clean clean-test start-test-env kill-test-env

generate:
npm run generate
Expand Down
2 changes: 1 addition & 1 deletion packages/composedb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"generate": "node --no-warnings=ExperimentalWarning --loader ts-node/esm scripts/generate.ts",
"dev": "node --no-warnings=ExperimentalWarning --loader ts-node/esm scripts/run.ts",
"deployComposites": "ADMIN_SEED=$(<admin_seed.txt) node --no-warnings=ExperimentalWarning --loader ts-node/esm scripts/composites.ts",
"deployComposites": "export ADMIN_SEED=$(cat admin_seed.txt) && echo \"[DEBUG] seed from deployComposites: $ADMIN_SEED \n [DEBUG] content: $(cat admin_seed.txt) \" && node --no-warnings=ExperimentalWarning --loader ts-node/esm scripts/composites.ts",
"ceramic": "ceramic daemon --config composedb.config.json",
"kill": "pkill --full \"ceramic daemon|ipfs daemon\""
},
Expand Down
2 changes: 1 addition & 1 deletion packages/composedb/scripts/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const Generate = async () => {
};

if (!existsSync(SEED_PATH)) {
console.log("Creating new admin seed...");
console.log(`Creating new admin seed at ${SEED_PATH}...`);
writeFileSync(SEED_PATH, newSeed());

console.log("Generating new config...");
Expand Down
2 changes: 1 addition & 1 deletion packages/composedb/src/__generated__/definition.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/composedb/src/__generated__/definition.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"scripts": {
"build": "rm -rf ./dist && tsc --project tsconfig.build.json",
"populate": "node --no-warnings=ExperimentalWarning --loader ts-node/esm scripts/populate.ts",
"test": "ADMIN_SEED=$(<../composedb/admin_seed.txt) vitest --run --config vitest.config.ts"
"test": "export ADMIN_SEED=$(<../composedb/admin_seed.txt) && vitest --run --config vitest.config.ts"
},
"devDependencies": {
"ts-node": "^10.9.1",
Expand Down

0 comments on commit 69795bd

Please sign in to comment.