mirror of
https://github.com/XFox111/TabsAsideExtension.git
synced 2026-04-22 07:58:01 +03:00
fdac0c0766
* Bump the react group across 1 directory with 3 updates (#207) Bumps the react group with 3 updates in the / directory: [react](https://github.com/facebook/react/tree/HEAD/packages/react), [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) and [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom). Updates `react` from 19.2.0 to 19.2.1 - [Release notes](https://github.com/facebook/react/releases) - [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/react/commits/v19.2.1/packages/react) Updates `@types/react` from 19.2.4 to 19.2.7 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) Updates `react-dom` from 19.2.0 to 19.2.1 - [Release notes](https://github.com/facebook/react/releases) - [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/react/commits/v19.2.1/packages/react-dom) Updates `@types/react` from 19.2.4 to 19.2.7 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: react dependency-version: 19.2.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: react - dependency-name: "@types/react" dependency-version: 19.2.7 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: react - dependency-name: react-dom dependency-version: 19.2.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: react - dependency-name: "@types/react" dependency-version: 19.2.7 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: react ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump the deps group across 1 directory with 5 updates (#208) Bumps the deps group with 5 updates in the / directory: | Package | From | To | | --- | --- | --- | | [@fluentui/react-components](https://github.com/microsoft/fluentui) | `9.72.7` | `9.72.8` | | [@fluentui/react-icons](https://github.com/microsoft/fluentui-system-icons) | `2.0.314` | `2.0.316` | | [@stylistic/eslint-plugin](https://github.com/eslint-stylistic/eslint-stylistic/tree/HEAD/packages/eslint-plugin) | `5.5.0` | `5.6.1` | | [typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-eslint) | `8.46.4` | `8.49.0` | | [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) | `7.2.2` | `7.2.7` | Updates `@fluentui/react-components` from 9.72.7 to 9.72.8 - [Release notes](https://github.com/microsoft/fluentui/releases) - [Commits](https://github.com/microsoft/fluentui/compare/@fluentui/react-components_v9.72.7...@fluentui/react-components_v9.72.8) Updates `@fluentui/react-icons` from 2.0.314 to 2.0.316 - [Commits](https://github.com/microsoft/fluentui-system-icons/commits) Updates `@stylistic/eslint-plugin` from 5.5.0 to 5.6.1 - [Release notes](https://github.com/eslint-stylistic/eslint-stylistic/releases) - [Changelog](https://github.com/eslint-stylistic/eslint-stylistic/blob/main/CHANGELOG.md) - [Commits](https://github.com/eslint-stylistic/eslint-stylistic/commits/v5.6.1/packages/eslint-plugin) Updates `typescript-eslint` from 8.46.4 to 8.49.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/typescript-eslint/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.49.0/packages/typescript-eslint) Updates `vite` from 7.2.2 to 7.2.7 - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/v7.2.7/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v7.2.7/packages/vite) --- updated-dependencies: - dependency-name: "@fluentui/react-components" dependency-version: 9.72.8 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: deps - dependency-name: "@fluentui/react-icons" dependency-version: 2.0.316 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: deps - dependency-name: "@stylistic/eslint-plugin" dependency-version: 5.6.1 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: deps - dependency-name: typescript-eslint dependency-version: 8.49.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: deps - dependency-name: vite dependency-version: 7.2.7 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: deps ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Migrated to npm * Updated package.json version * Fixed pipelines build --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
162 lines
5.0 KiB
YAML
162 lines
5.0 KiB
YAML
name: Release pipeline
|
|
|
|
on:
|
|
release:
|
|
types: [ released ]
|
|
workflow_dispatch:
|
|
inputs:
|
|
bypass_audit:
|
|
description: Bypass npm audit
|
|
type: boolean
|
|
default: false
|
|
targets:
|
|
description: Targets
|
|
required: true
|
|
default: '["chrome","firefox"]'
|
|
type: choice
|
|
options:
|
|
- '["chrome","firefox"]'
|
|
- '["chrome"]'
|
|
- '["firefox"]'
|
|
firefox:
|
|
description: Deploy Firefox
|
|
type: boolean
|
|
default: true
|
|
chrome:
|
|
description: Deploy Chrome
|
|
type: boolean
|
|
default: true
|
|
edge:
|
|
description: Deploy Edge
|
|
type: boolean
|
|
default: true
|
|
gh-release:
|
|
description: Attach to GitHub release
|
|
type: boolean
|
|
default: true
|
|
|
|
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: npm 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: npm run zip -- -b ${{ matrix.target }}
|
|
|
|
- name: Drop build artifacts (${{ matrix.target }})
|
|
uses: actions/upload-artifact@main
|
|
with:
|
|
name: ${{ matrix.target }}
|
|
path: ./.output/tabs-aside-*.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: npm audit
|
|
continue-on-error: ${{ github.event_name != 'release' && github.event.inputs.bypass_audit == 'true' }}
|
|
|
|
publish-github:
|
|
needs: build
|
|
if: ${{ github.event_name == 'release' || github.event.inputs.gh-release == 'true' }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target: ${{ fromJSON(github.event.inputs.targets || '["chrome","firefox"]') }}
|
|
|
|
steps:
|
|
- uses: actions/download-artifact@main
|
|
with:
|
|
name: ${{ matrix.target }}
|
|
|
|
- name: Attach build to release
|
|
uses: xresloader/upload-to-github-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
file: tabs-aside-*-${{ matrix.target }}.zip
|
|
draft: false
|
|
overwrite: true
|
|
update_latest_release: true
|
|
|
|
publish-chrome:
|
|
needs: build
|
|
if: ${{ github.event_name == 'release' || (github.event.inputs.chrome == 'true' && contains(github.event.inputs.targets, 'chrome')) }}
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/download-artifact@main
|
|
with:
|
|
name: chrome
|
|
|
|
- uses: wdzeng/chrome-extension@v1.3.0
|
|
with:
|
|
extension-id: ${{ secrets.CHROME_EXT_ID }}
|
|
zip-path: tabs-aside-*-chrome.zip
|
|
client-id: ${{ secrets.CHROME_CLIENT_ID }}
|
|
client-secret: ${{ secrets.CHROME_CLIENT_SECRET }}
|
|
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}
|
|
|
|
publish-edge:
|
|
needs: build
|
|
if: ${{ github.event_name == 'release' || (github.event.inputs.edge == 'true' && contains(github.event.inputs.targets, 'chrome')) }}
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/download-artifact@main
|
|
with:
|
|
name: chrome
|
|
|
|
- uses: wdzeng/edge-addon@v2.1.0
|
|
with:
|
|
product-id: ${{ secrets.EDGE_PRODUCT_ID }}
|
|
zip-path: tabs-aside-*-chrome.zip
|
|
client-id: ${{ secrets.EDGE_CLIENT_ID }}
|
|
api-key: ${{ secrets.EDGE_API_KEY }}
|
|
|
|
publish-firefox:
|
|
needs: build
|
|
if: ${{ github.event_name == 'release' || (github.event.inputs.firefox == 'true' && contains(github.event.inputs.targets, 'firefox')) }}
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/download-artifact@main
|
|
with:
|
|
name: firefox
|
|
|
|
- uses: wdzeng/firefox-addon@v1.2.0
|
|
with:
|
|
addon-guid: ${{ secrets.FIREFOX_EXT_UUID }}
|
|
xpi-path: tabs-aside-*-firefox.zip
|
|
source-file-path: tabs-aside-*-sources.zip
|
|
jwt-issuer: ${{ secrets.FIREFOX_API_KEY }}
|
|
jwt-secret: ${{ secrets.FIREFOX_CLIENT_SECRET }}
|