Skip to content

Bugfix: Fix Rocketchat unread badge #9

Bugfix: Fix Rocketchat unread badge

Bugfix: Fix Rocketchat unread badge #9

Workflow file for this run

name: Build
on:
push:
branches: [master]
paths:
- 'src/**'
- 'package.json'
- 'package-lock.json'
- 'tsconfig*.json'
- '.github/workflows/build.yml'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- name: Install dependencies
run: npm ci
- name: Get today's date
id: date
run: echo "today=$(date -u +%y%m%d)" >> $GITHUB_OUTPUT
- name: Restore build counter
uses: actions/cache/restore@v4
with:
path: .build-counter.json
key: build-counter-${{ steps.date.outputs.today }}-${{ github.run_number }}
restore-keys: |
build-counter-${{ steps.date.outputs.today }}-
- name: Bump version
run: node scripts/version.mjs --bump
- name: Save build counter
uses: actions/cache/save@v4
with:
path: .build-counter.json
key: build-counter-${{ steps.date.outputs.today }}-${{ github.run_number }}
- name: Build
run: npm run build:main && npm run build:renderer:prod && npm run build:picker:prod
- name: Build and publish AppImage
run: npx electron-builder --linux AppImage --publish always
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}