diff --git a/.eslintrc.js b/.eslintrc.js index c120f3c1d..f06e496db 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -60,6 +60,7 @@ module.exports = { "jsx-a11y/control-has-associated-label": "off", "react/button-has-type": "off", "max-classes-per-file": "off", + "jest/no-standalone-expect": "off", }, parserOptions: { ecmaVersion: 2020, diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ab5d0f713..f0b44b08a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -22,7 +22,7 @@ jobs: - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 22.11.0 cache: "npm" - run: npm ci - run: npm run package diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index cec2a02a5..ad87bd1f0 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -14,11 +14,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 22.11.0 cache: "npm" - run: npm ci - run: npm run lint diff --git a/.github/workflows/node.js.yaml b/.github/workflows/node.js.yaml index 3a7b1b252..828fb605b 100644 --- a/.github/workflows/node.js.yaml +++ b/.github/workflows/node.js.yaml @@ -18,11 +18,11 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 22.11.0 cache: "npm" - run: npm ci - run: npm run build diff --git a/.github/workflows/release-linux.yaml b/.github/workflows/release-linux.yaml index 25a280e0d..0996f1ae7 100644 --- a/.github/workflows/release-linux.yaml +++ b/.github/workflows/release-linux.yaml @@ -20,13 +20,27 @@ jobs: - name: Check out Git repository uses: actions/checkout@v4 + - name: Install flatpak packages + run: sudo apt-get install -y flatpak flatpak-builder + + - name: Setup flatpak repo + run: | + flatpak remote-add --if-not-exists --user \ + flathub https://flathub.org/repo/flathub.flatpakrepo + - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: 18.x + node-version: 22.11.0 cache: "npm" - run: npm ci - - run: npm run publish:linux + - run: npm run build + + - name: Build deb + run: npx electron-builder --config electron-builder.config.js --publish always --linux deb --x64 + + - name: Build flatpak + run: env DEBUG="@malept/flatpak-bundler" npx electron-builder --config electron-builder.config.js --publish always --linux flatpak - name: Upload artifact uses: actions/upload-artifact@v4 diff --git a/README.md b/README.md index ac37a98da..6b47a043e 100644 --- a/README.md +++ b/README.md @@ -226,6 +226,10 @@ -->
Refer to Linux wiki
+