mirror of
https://github.com/XFox111/PasswordGeneratorExtension.git
synced 2026-04-22 08:08:01 +03:00
88b954fcd0
* Bump vite from 5.1.5 to 5.2.7 (#340) Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 5.1.5 to 5.2.7. - [Release notes](https://github.com/vitejs/vite/releases) - [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md) - [Commits](https://github.com/vitejs/vite/commits/v5.2.7/packages/vite) --- updated-dependencies: - dependency-name: vite dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump vite-plugin-web-extension from 4.1.2 to 4.1.3 (#339) Bumps [vite-plugin-web-extension](https://github.com/aklinker1/vite-plugin-web-extension) from 4.1.2 to 4.1.3. - [Release notes](https://github.com/aklinker1/vite-plugin-web-extension/releases) - [Commits](https://github.com/aklinker1/vite-plugin-web-extension/compare/v4.1.2...v4.1.3) --- updated-dependencies: - dependency-name: vite-plugin-web-extension dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump eslint-plugin-react from 7.34.0 to 7.34.1 (#336) Bumps [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) from 7.34.0 to 7.34.1. - [Release notes](https://github.com/jsx-eslint/eslint-plugin-react/releases) - [Changelog](https://github.com/jsx-eslint/eslint-plugin-react/blob/v7.34.1/CHANGELOG.md) - [Commits](https://github.com/jsx-eslint/eslint-plugin-react/compare/v7.34.0...v7.34.1) --- updated-dependencies: - dependency-name: eslint-plugin-react dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump eslint-plugin-react-refresh from 0.4.5 to 0.4.6 (#338) Bumps [eslint-plugin-react-refresh](https://github.com/ArnaudBarre/eslint-plugin-react-refresh) from 0.4.5 to 0.4.6. - [Release notes](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/releases) - [Changelog](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/main/CHANGELOG.md) - [Commits](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.4.5...v0.4.6) --- updated-dependencies: - dependency-name: eslint-plugin-react-refresh dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @fluentui/react-components from 9.46.7 to 9.47.2 (#341) Bumps [@fluentui/react-components](https://github.com/microsoft/fluentui) from 9.46.7 to 9.47.2. - [Release notes](https://github.com/microsoft/fluentui/releases) - [Changelog](https://github.com/microsoft/fluentui/blob/master/azure-pipelines.release-fluentui.yml) - [Commits](https://github.com/microsoft/fluentui/compare/@fluentui/react-components_v9.46.7...@fluentui/react-components_v9.47.2) --- updated-dependencies: - dependency-name: "@fluentui/react-components" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/react-dom from 18.2.20 to 18.2.23 (#343) Bumps [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom) from 18.2.20 to 18.2.23. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom) --- updated-dependencies: - dependency-name: "@types/react-dom" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump wdzeng/chrome-extension from 1.2.2 to 1.2.4 (#335) Bumps [wdzeng/chrome-extension](https://github.com/wdzeng/chrome-extension) from 1.2.2 to 1.2.4. - [Release notes](https://github.com/wdzeng/chrome-extension/releases) - [Commits](https://github.com/wdzeng/chrome-extension/compare/v1.2.2...v1.2.4) --- updated-dependencies: - dependency-name: wdzeng/chrome-extension dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump wdzeng/edge-addon from 1.2.3 to 1.2.4 (#334) Bumps [wdzeng/edge-addon](https://github.com/wdzeng/edge-addon) from 1.2.3 to 1.2.4. - [Release notes](https://github.com/wdzeng/edge-addon/releases) - [Commits](https://github.com/wdzeng/edge-addon/compare/v1.2.3...v1.2.4) --- updated-dependencies: - dependency-name: wdzeng/edge-addon dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump wdzeng/firefox-addon from 1.0.4 to 1.0.5 (#333) Bumps [wdzeng/firefox-addon](https://github.com/wdzeng/firefox-addon) from 1.0.4 to 1.0.5. - [Release notes](https://github.com/wdzeng/firefox-addon/releases) - [Commits](https://github.com/wdzeng/firefox-addon/compare/v1.0.4...v1.0.5) --- updated-dependencies: - dependency-name: wdzeng/firefox-addon dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump vite-plugin-static-copy from 1.0.1 to 1.0.2 (#337) Bumps [vite-plugin-static-copy](https://github.com/sapphi-red/vite-plugin-static-copy) from 1.0.1 to 1.0.2. - [Release notes](https://github.com/sapphi-red/vite-plugin-static-copy/releases) - [Changelog](https://github.com/sapphi-red/vite-plugin-static-copy/blob/main/CHANGELOG.md) - [Commits](https://github.com/sapphi-red/vite-plugin-static-copy/compare/vite-plugin-static-copy@1.0.1...vite-plugin-static-copy@1.0.2) --- updated-dependencies: - dependency-name: vite-plugin-static-copy dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eugene Fox <eugene.xfox@outlook.com> * Bump typescript from 5.3.3 to 5.4.3 (#345) Bumps [typescript](https://github.com/Microsoft/TypeScript) from 5.3.3 to 5.4.3. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml) - [Commits](https://github.com/Microsoft/TypeScript/compare/v5.3.3...v5.4.3) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eugene Fox <eugene.xfox@outlook.com> * Bump @fluentui/react-icons from 2.0.230 to 2.0.233 (#342) Bumps [@fluentui/react-icons](https://github.com/microsoft/fluentui-system-icons) from 2.0.230 to 2.0.233. - [Commits](https://github.com/microsoft/fluentui-system-icons/commits) --- updated-dependencies: - dependency-name: "@fluentui/react-icons" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eugene Fox <eugene.xfox@outlook.com> * Bump @types/react from 18.2.63 to 18.2.73 (#344) Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.2.63 to 18.2.73. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: "@types/react" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Eugene Fox <eugene.xfox@outlook.com> * Update package.json * Fixed build-time warnings --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
150 lines
4.3 KiB
YAML
150 lines
4.3 KiB
YAML
name: Release pipeline
|
|
|
|
on:
|
|
release:
|
|
types: [ released ]
|
|
workflow_dispatch:
|
|
inputs:
|
|
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:20
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
target: ${{ fromJSON(github.event.inputs.targets || '["chrome","firefox"]') }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@main
|
|
|
|
- run: yarn install
|
|
- run: yarn lint
|
|
- run: TARGET=${{ matrix.target }} yarn build
|
|
|
|
- name: Drop build artifacts (${{ matrix.target }})
|
|
uses: actions/upload-artifact@main
|
|
with:
|
|
name: ${{ matrix.target }}
|
|
path: dist
|
|
|
|
- name: web-ext lint
|
|
if: ${{ matrix.target == 'firefox' }}
|
|
uses: freaktechnik/web-ext-lint@main
|
|
with:
|
|
extension-root: dist
|
|
self-hosted: false
|
|
|
|
- uses: cardinalby/webext-buildtools-pack-extension-dir-action@1.0.9
|
|
with:
|
|
extensionDir: dist
|
|
zipFilePath: PasswordGenerator-${{ matrix.target }}.zip
|
|
|
|
- name: Drop packed artifacts (${{ matrix.target }})
|
|
uses: actions/upload-artifact@main
|
|
with:
|
|
name: packed-${{ matrix.target }}
|
|
path: PasswordGenerator-${{ matrix.target }}.zip
|
|
|
|
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: packed-${{ matrix.target }}
|
|
|
|
- name: Attach build to release
|
|
uses: xresloader/upload-to-github-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
file: PasswordGenerator-${{ 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: packed-chrome
|
|
|
|
- uses: wdzeng/chrome-extension@v1.2.4
|
|
with:
|
|
extension-id: jnjobgjobffgmgfnkpkjfjkkfhfikmfl
|
|
zip-path: PasswordGenerator-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: packed-chrome
|
|
|
|
- uses: wdzeng/edge-addon@v1.2.4
|
|
with:
|
|
product-id: ${{ secrets.EDGE_PRODUCT_ID }}
|
|
zip-path: PasswordGenerator-chrome.zip
|
|
client-id: ${{ secrets.EDGE_CLIENT_ID }}
|
|
client-secret: ${{ secrets.EDGE_CLIENT_SECRET }}
|
|
access-token-url: ${{ secrets.EDGE_ACCESS_TOKEN_URL }}
|
|
|
|
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: packed-firefox
|
|
|
|
- uses: wdzeng/firefox-addon@v1.0.5
|
|
with:
|
|
addon-guid: ${{ secrets.FIREFOX_EXT_UUID }}
|
|
xpi-path: PasswordGenerator-firefox.zip
|
|
jwt-issuer: ${{ secrets.FIREFOX_API_KEY }}
|
|
jwt-secret: ${{ secrets.FIREFOX_CLIENT_SECRET }}
|