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;