From 8031f3eccf256d4beca94f56ec8d0fdc23f93fc2 Mon Sep 17 00:00:00 2001 From: hiento09 <136591877+hiento09@users.noreply.github.com> Date: Fri, 6 Oct 2023 16:22:29 +0700 Subject: [PATCH] add electron artifactName (#289) * add electron artifactName * update path trigger for linter-and-test CI --------- Co-authored-by: Hien To --- .github/workflows/linter-and-test.yml | 16 +++++++++++++++- electron/package.json | 3 ++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linter-and-test.yml b/.github/workflows/linter-and-test.yml index 50bdf944a..70ae433f6 100644 --- a/.github/workflows/linter-and-test.yml +++ b/.github/workflows/linter-and-test.yml @@ -3,10 +3,24 @@ on: push: branches: - main - - fix/eslint-ignore-patterns + paths: + - 'electron/**' + - .github/workflows/linter-and-test.yml + - 'web/**' + - 'package.json' + - 'node_modules/**' + - 'yarn.lock' + pull_request: branches: - main + paths: + - 'electron/**' + - .github/workflows/linter-and-test.yml + - 'web/**' + - 'package.json' + - 'node_modules/**' + - 'yarn.lock' jobs: test-on-macos: diff --git a/electron/package.json b/electron/package.json index 285190d50..c6f8f5f48 100644 --- a/electron/package.json +++ b/electron/package.json @@ -28,7 +28,8 @@ "extends": null, "mac": { "type": "distribution" - } + }, + "artifactName": "${name}-${os}-${arch}-${version}.${ext}" }, "scripts": { "lint": "eslint . --ext \".js,.jsx,.ts,.tsx\"",