Skip to content

Commit

Permalink
[fixup] reviewed package build, popup and github workflow
Browse files Browse the repository at this point in the history
  [gha,devenv] reviewed github workflow (running on self-hosted for now)

  [gha,release] handle versoning and production mode when releasing from a tag

  [loading] removed loading message, always display the content (should add a notifier)

  [loading] ensure desktop notified at popup loading error

  [desktop] troubleshot the desktop notifications (not working using the ARC browser)

  [fixup] wrong connect host-name in hard-coded forbidden connection

  [fixup] server connection error and desktop notification

  [notification, cleanup] always display notification on popup when available

  [loading] enforce javascript execution starting

  [production] disabled options settings in production mode

  [livepreview] disable browser cache when live-preview enabled for redirected URLs

  [build] reviewed vite plugins and fixup wrong code source map

  [alert,desktop-notif] better error handling in service worker and popup

  [popup,header] enabled studio project select box in popup header

  [connection,development] Allow to force connection to connect pre-prod in development mode

  [live-preview,web-cache] request no-cache directive for redirected URLs

  [loading] display the animated GIF while loading the popup

  [fixup] better error handling in service worker and popup

  [developmentMode] ensure development mode correctly handled using the compoment proxy

  [productionMode] ensure production mode well handled
  • Loading branch information
nxmatic committed Jul 15, 2024
1 parent e856a20 commit 27a3edf
Show file tree
Hide file tree
Showing 32 changed files with 6,818 additions and 4,552 deletions.
38 changes: 29 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: CI Build

on:
pull_request:

Expand All @@ -17,29 +16,50 @@ on:

jobs:
build:
permissions:
contents: write # This is needed for release
actions: write # This is needed for upload-artifact

runs-on:
- ${{ github.repository_owner != github.actor && 'ubuntu-latest' || 'self-hosted' }}

steps:

- name: Checkout Commit
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Install pnpm
node-version-file: '.nvmrc'

- name: Setup pnpm
run: |
corepack enable
corepack prepare pnpm@next-8 --activate
corepack enable pnpm
- name: Cache pnpm store
uses: actions/cache@v4
with:
path: ~/.local/share/pnpm/store/v3
key: |
${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install dependencies
run: pnpm install

- name: Update package version for release
if: startsWith(github.ref, 'refs/tags/v')
run: |
VERSION=$(echo $GITHUB_REF | sed 's/refs\/tags\/v//')
pnpm version $VERSION --no-git-tag-version
cat <<! | tee -a $GITHUB_ENV
NODE_ENV=production
!
- name: Build
run: pnpm build:chrome

Expand Down
Loading

0 comments on commit 27a3edf

Please sign in to comment.