Skip to content

Commit b31b9eb

Browse files
committed
#128 update actions yml
1 parent 2cc5a92 commit b31b9eb

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
- uses: actions/setup-node@v4
1717
with:
1818
registry-url: "https://registry.npmjs.org"
19+
- run: ls -la
1920
- run: npm run release
2021
- run: npm install
2122
- run: npm run publish

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@
2121
],
2222
"scripts": {
2323
"lint": "eslint src/**/*.ts",
24+
"clean": "node ./scripts/clean.js",
2425
"release": "node ./scripts/release.js",
25-
"publish": "node ./scripts/clean.js && node ./scripts/version.js && tsc && node ./scripts/publish.js",
26+
"publish": "node ./scripts/version.js && tsc && node ./scripts/publish.js",
2627
"test": "vitest"
2728
},
2829
"repository": {

scripts/release.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
const execute = () =>
66
{
77
const packageJson = JSON.parse(
8-
readFileSync(`${process.cwd()}/package.json`, { "encoding": "utf8" })
8+
readFileSync(join(process.cwd(), "package.json"), { "encoding": "utf8" })
99
);
1010

1111
delete packageJson.peerDependencies;

0 commit comments

Comments
 (0)