Skip to content

Commit

Permalink
fix: getDirName on append file and publish github pkg
Browse files Browse the repository at this point in the history
  • Loading branch information
helmisatria committed May 6, 2023
1 parent 520ba0f commit 465b26b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ on:
types: [created]

jobs:
build-publish:
needs: build
publish:
runs-on: ubuntu-latest
permissions:
packages: write
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "tweet-harvest",
"description": "A Twitter crawler helper with auth",
"version": "0.0.23",
"version": "0.0.24",
"license": "MIT",
"author": "Helmi Satria",
"publishConfig": {
Expand Down
2 changes: 1 addition & 1 deletion src/crawl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const getDirName = path.dirname;

function appendCsv(path: string, contents: any, cb?: any) {
fs.mkdirSync(getDirName(path), { recursive: true });
return fs.appendFileSync(path, contents, cb);
return fs.appendFileSync(getDirName(path), contents, cb);
}

const filteredFields = [
Expand Down

0 comments on commit 465b26b

Please sign in to comment.