mirror of
https://github.com/XFox111/TabsAsideExtension.git
synced 2026-04-23 08:18:41 +03:00
e21022d985
* Some features are now optional (#148) * fix(dev): yarn.lock tree fix * feat: bookmarks moved to optional permissions * fix: analytics not working in firefox * feat!: ability to turn off analytics (uses permissions on firefox) * feat: analytics tracker for bookmark export * feat: add privacy policy link in about section * docs: privacy policy update * feat: ability to chain multiple dialogs * fix(loc): analytics option translation * feat: settings review dialog * fix: background script fails to load because of frontend code * chore: use analytics permission as storage value * fix: inverted analytics value * feat!: option to disable thumbnail capture * fix(ci): sed typo * fix: minor fixes * fix(firefox): web-ext lint error fix * chore(ci): switch web-ext action * chore(lint): fix eslint warnings * chore(deps): monthly dependency bump (September 2025) (#149) * chore: 3.1.0 version bump * chore: minor cleanup * fix: allow analytics checkbox stays inactive after denying permission on firefox * fix(deps): yarn.lock rebuild * fix: type assertion for userId * fix: settings review dialog not showing if welcome dialog is not required * fix: analytics and thumbnail capture toggles react incorrectly if permission is denied
77 lines
2.3 KiB
YAML
77 lines
2.3 KiB
YAML
name: PR check pipeline
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ "main", "next" ]
|
|
paths-ignore:
|
|
- '**.md'
|
|
- '**.txt'
|
|
- "locales/*"
|
|
- 'LICENSE'
|
|
- 'PRIVACY'
|
|
- '**/cd_pipeline.yml'
|
|
- '**/dependabot.yml'
|
|
- '**/codeql-analysis.yml'
|
|
- '**/pr_next.yaml'
|
|
- '.vscode/*'
|
|
- '.devcontainer/*'
|
|
workflow_dispatch:
|
|
inputs:
|
|
targets:
|
|
description: Targets
|
|
required: true
|
|
default: '["chrome","firefox"]'
|
|
type: choice
|
|
options:
|
|
- '["chrome","firefox"]'
|
|
- '["chrome"]'
|
|
- '["firefox"]'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container: node:24
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target: ${{ fromJSON(github.event.inputs.targets || '["chrome","firefox"]') }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@main
|
|
|
|
- run: |
|
|
echo "WXT_GA4_API_SECRET=${{ secrets.GA4_SECRET }}" >> .env
|
|
echo "WXT_GA4_MEASUREMENT_ID=${{ secrets.GA4_MEASUREMENT_ID }}" >> .env
|
|
|
|
- run: corepack enable
|
|
- run: yarn install
|
|
|
|
# Patch for firefox dnd popup (see https://github.com/clauderic/dnd-kit/issues/1043)
|
|
- run: grep -v "this.windowListeners.add(EventName.Resize, this.handleCancel);" core.esm.js > core.esm.js.tmp && mv core.esm.js.tmp core.esm.js
|
|
working-directory: ./node_modules/@dnd-kit/core/dist
|
|
if: ${{ matrix.target == 'firefox' }}
|
|
|
|
# Patch for firefox analytics (see https://github.com/wxt-dev/wxt/pull/1808)
|
|
- run: sed -i 's|if (location.pathname === "/background.js")|if (location.pathname === "/background.js" \|\| location.pathname === "/_generated_background_page.html")|' index.mjs
|
|
working-directory: ./node_modules/@wxt-dev/analytics/dist
|
|
if: ${{ matrix.target == 'firefox' }}
|
|
|
|
- run: yarn zip -b ${{ matrix.target }}
|
|
|
|
- name: Drop artifacts (${{ matrix.target }})
|
|
uses: actions/upload-artifact@main
|
|
with:
|
|
name: ${{ matrix.target }}
|
|
path: ./.output/tabs-aside-*-${{ matrix.target }}.zip
|
|
include-hidden-files: true
|
|
|
|
- name: web-ext lint
|
|
if: ${{ matrix.target == 'firefox' }}
|
|
uses: kewisch/action-web-ext@main
|
|
with:
|
|
cmd: lint
|
|
source: ./.output/firefox-mv3
|
|
channel: listed
|
|
|
|
- run: yarn npm audit
|