israeli-banks-actual-budget-importer 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,18 +19,24 @@ jobs:
19
19
  - name: Checkout
20
20
  uses: actions/checkout@v4
21
21
 
22
- - name: Setup Bun
23
- uses: oven-sh/setup-bun@v2
22
+ - name: Setup Node
23
+ uses: actions/setup-node@v4
24
+ with:
25
+ node-version: 21
26
+ cache: 'yarn'
27
+ cache-dependency-path: 'yarn.lock'
24
28
 
25
29
  - name: Install Dependencies
26
- run: bun i --dev
30
+ run: yarn install
31
+ env:
32
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
27
33
 
28
34
  # Authenticate with ghcr.io
29
35
  - name: Authenticate with ghcr.io
30
36
  run: echo "${{ secrets.GH_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
31
37
 
32
38
  - name: Semantic Release
33
- run: bunx semantic-release
39
+ run: yarn semantic-release
34
40
  env:
35
41
  NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36
42
  GH_TOKEN: ${{ secrets.GH_TOKEN }}
package/.releaserc CHANGED
@@ -13,35 +13,6 @@
13
13
  "@semantic-release/npm",
14
14
  "@semantic-release/changelog",
15
15
  "@semantic-release/git",
16
- "@semantic-release/github",
17
- [
18
- "@codedependant/semantic-release-docker",
19
- {
20
- "dockerTags": [
21
- "latest",
22
- "{{version}}",
23
- "{{major}}",
24
- "{{major}}.{{minor}}"
25
- ],
26
- "dockerLogin": false,
27
- "dockerRegistry": "ghcr.io",
28
- "dockerProject": "tomerh2001",
29
- "dockerArgs": {
30
- "GH_REPO": "{{env.GH_REPO}}"
31
- }
32
- }
33
- ],
34
- [
35
- "@codedependant/semantic-release-docker",
36
- {
37
- "dockerTags": [
38
- "latest",
39
- "{{version}}",
40
- "{{major}}",
41
- "{{major}}.{{minor}}"
42
- ],
43
- "dockerProject": "tomerh2001"
44
- }
45
- ]
16
+ "@semantic-release/github"
46
17
  ]
47
18
  }
package/CHANGELOG.md CHANGED
@@ -1,3 +1,52 @@
1
+ # [1.2.0](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.1.0...v1.2.0) (2025-04-16)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * replace bunx with yarn for semantic release command ([1c15afa](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/1c15afa2f0b4aa2247538ff0273b97639bac9f32))
7
+ * specify Node.js version to 21 in workflow ([5f8c3db](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/5f8c3db7b8d055e2d5b11acee3f9b45d5ef621b3))
8
+ * update Docker image tag to use latest version in compose file ([e43a3b1](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/e43a3b11e2271818f00f55a985c363c9a2fe4d5f))
9
+ * update workflow to use yarn for dependency installation and setup Node environment ([b0e797f](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/b0e797fdcbefb6390e85ccecaf598d37d67f9f04))
10
+
11
+
12
+ ### Features
13
+
14
+ * Added docker support ([aff5c85](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/aff5c8559f194a44c4c29f8ee1cd24f89fb11f62))
15
+
16
+ # [1.2.0](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.1.0...v1.2.0) (2025-04-16)
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * replace bunx with yarn for semantic release command ([1c15afa](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/1c15afa2f0b4aa2247538ff0273b97639bac9f32))
22
+ * specify Node.js version to 21 in workflow ([5f8c3db](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/5f8c3db7b8d055e2d5b11acee3f9b45d5ef621b3))
23
+ * update workflow to use yarn for dependency installation and setup Node environment ([b0e797f](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/b0e797fdcbefb6390e85ccecaf598d37d67f9f04))
24
+
25
+
26
+ ### Features
27
+
28
+ * Added docker support ([aff5c85](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/aff5c8559f194a44c4c29f8ee1cd24f89fb11f62))
29
+
30
+ # [1.2.0](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.1.0...v1.2.0) (2025-04-16)
31
+
32
+
33
+ ### Bug Fixes
34
+
35
+ * replace bunx with yarn for semantic release command ([1c15afa](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/1c15afa2f0b4aa2247538ff0273b97639bac9f32))
36
+ * update workflow to use yarn for dependency installation and setup Node environment ([b0e797f](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/b0e797fdcbefb6390e85ccecaf598d37d67f9f04))
37
+
38
+
39
+ ### Features
40
+
41
+ * Added docker support ([aff5c85](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/aff5c8559f194a44c4c29f8ee1cd24f89fb11f62))
42
+
43
+ # [1.2.0](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.1.0...v1.2.0) (2025-04-16)
44
+
45
+
46
+ ### Features
47
+
48
+ * Added docker support ([aff5c85](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/commit/aff5c8559f194a44c4c29f8ee1cd24f89fb11f62))
49
+
1
50
  # [1.1.0](https://github.com/tomerh2001/israeli-banks-actual-budget-importer/compare/v1.0.0...v1.1.0) (2025-04-09)
2
51
 
3
52
 
package/Dockerfile CHANGED
@@ -1,8 +1,17 @@
1
- FROM alpine:latest
1
+ # Base stage for common settings
2
+ FROM ghcr.io/puppeteer/puppeteer:latest AS base
3
+ WORKDIR /app
2
4
 
3
- ARG GH_REPO
4
- ARG RELEASE_NOTES
5
+ # Dependencies stage
6
+ FROM base AS dependencies
7
+ COPY package.json yarn.lock .yarnrc.yml ./
8
+ COPY .yarn .yarn
9
+ RUN yarn install
5
10
 
6
- LABEL org.opencontainers.image.source $GH_REPO
11
+ # Builder stage
12
+ FROM dependencies AS builder
13
+ COPY src/ src/
7
14
 
8
- CMD ["echo", "Hello World!"]
15
+ # Final stage for production
16
+ FROM builder AS release
17
+ CMD yarn start
package/compose.yml ADDED
@@ -0,0 +1,13 @@
1
+ services:
2
+ israeli-banks-actual-budget-importer:
3
+ image: tomerh2001/israeli-banks-actual-budget-importer:latest
4
+ container_name: israeli-banks-actual-budget-importer
5
+ cap_add:
6
+ - SYS_ADMIN
7
+ build:
8
+ context: .
9
+ dockerfile: Dockerfile
10
+ volumes:
11
+ - ./config.json:/app/config.json
12
+ - ./cache:/app/cache
13
+ - ./chrome-data:/app/chrome-data
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.0",
2
+ "version": "1.2.0",
3
3
  "name": "israeli-banks-actual-budget-importer",
4
4
  "module": "index.ts",
5
5
  "type": "module",
@@ -19,13 +19,14 @@
19
19
  "@types/papaparse": "^5.3.15",
20
20
  "bun-types": "latest",
21
21
  "papaparse": "^5.5.2",
22
- "typescript": "^5.8.2",
22
+ "semantic-release": "^24.2.3",
23
+ "typescript": "^5.8.3",
23
24
  "xo": "^0.60.0"
24
25
  },
25
26
  "packageManager": "yarn@4.7.0",
26
27
  "dependencies": {
27
- "@actual-app/api": "^25.3.1",
28
- "israeli-bank-scrapers": "^5.4.5",
28
+ "@actual-app/api": "^25.4.0",
29
+ "israeli-bank-scrapers": "^5.4.6",
29
30
  "lodash": "^4.17.21",
30
31
  "moment": "^2.30.1",
31
32
  "p-queue": "^8.1.0",
package/src/utils.ts CHANGED
@@ -15,7 +15,8 @@ export async function scrapeAndImportTransactions({companyId, bank}: ScrapeTrans
15
15
  const scraper = createScraper({
16
16
  companyId,
17
17
  startDate: moment().subtract(6, 'month').toDate(),
18
- executablePath: '/opt/homebrew/bin/chromium',
18
+ // ExecutablePath: '/opt/homebrew/bin/chromium',
19
+ args: ['--user-data-dir=/app/chrome-data'],
19
20
  additionalTransactionInformation: true,
20
21
  verbose: false,
21
22
  showBrowser: false,