From b31b9eb4e5a293334f6d4d92878eb20f3c78187b Mon Sep 17 00:00:00 2001 From: ienaga Date: Sun, 23 Mar 2025 15:07:10 +0900 Subject: [PATCH] #128 update actions yml --- .github/workflows/publish.yml | 1 + package.json | 3 ++- scripts/release.js | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 107290c..8ce3520 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,6 +16,7 @@ jobs: - uses: actions/setup-node@v4 with: registry-url: "https://registry.npmjs.org" + - run: ls -la - run: npm run release - run: npm install - run: npm run publish diff --git a/package.json b/package.json index 11d8f1f..d95c567 100644 --- a/package.json +++ b/package.json @@ -21,8 +21,9 @@ ], "scripts": { "lint": "eslint src/**/*.ts", + "clean": "node ./scripts/clean.js", "release": "node ./scripts/release.js", - "publish": "node ./scripts/clean.js && node ./scripts/version.js && tsc && node ./scripts/publish.js", + "publish": "node ./scripts/version.js && tsc && node ./scripts/publish.js", "test": "vitest" }, "repository": { diff --git a/scripts/release.js b/scripts/release.js index 49c5083..47654d5 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -5,7 +5,7 @@ const execute = () => { const packageJson = JSON.parse( - readFileSync(`${process.cwd()}/package.json`, { "encoding": "utf8" }) + readFileSync(join(process.cwd(), "package.json"), { "encoding": "utf8" }) ); delete packageJson.peerDependencies;