mirror of
https://github.com/XFox111/PasswordGeneratorExtension.git
synced 2026-04-22 08:08:01 +03:00
32bcdef7ec
* Bump @types/node from 18.11.0 to 18.11.8 (#62) Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.11.0 to 18.11.8. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) --- updated-dependencies: - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @fluentui/react-icons from 2.0.185 to 2.0.186 (#60) Bumps [@fluentui/react-icons](https://github.com/microsoft/fluentui-system-icons) from 2.0.185 to 2.0.186. - [Release notes](https://github.com/microsoft/fluentui-system-icons/releases) - [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> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/upload-artifact from 3.1.0 to 3.1.1 (#55) Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.0 to 3.1.1. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3.1.0...v3.1.1) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump @types/react from 18.0.21 to 18.0.24 (#61) Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.0.21 to 18.0.24. - [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> 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-components from 9.5.1 to 9.6.1 (#59) Bumps [@fluentui/react-components](https://github.com/microsoft/fluentui) from 9.5.1 to 9.6.1. - [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.5.1...@fluentui/react-components_v9.6.1) --- 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> 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/jest from 29.1.2 to 29.2.0 (#57) Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 29.1.2 to 29.2.0. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) --- updated-dependencies: - dependency-name: "@types/jest" dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> 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> * Updated package.json version Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
170 lines
4.3 KiB
YAML
170 lines
4.3 KiB
YAML
name: Release pipeline
|
|
|
|
on:
|
|
|
|
release:
|
|
types: [published]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
Build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Configure manifest
|
|
uses: Amadevus/pwsh-script@v2
|
|
with:
|
|
script: |
|
|
[PSCustomObject] $package = Get-Content "package.json" | ConvertFrom-Json;
|
|
|
|
[PSCustomObject] $manifest = Get-Content "public/manifest.json" | ConvertFrom-Json;
|
|
$manifest.version = $package.version;
|
|
$manifest | ConvertTo-Json -Depth 10 | Out-File "public/manifest.json"
|
|
|
|
$manifest = Get-Content "public/manifest.v2.json" | ConvertFrom-Json;
|
|
$manifest.version = $package.version;
|
|
$manifest | ConvertTo-Json -Depth 10 | Out-File "public/manifest.v2.json"
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '16.x'
|
|
cache: yarn
|
|
|
|
- run: yarn install
|
|
- run: yarn build
|
|
|
|
- name: Drop artifacts (build)
|
|
uses: actions/upload-artifact@v3.1.1
|
|
with:
|
|
name: build
|
|
path: build
|
|
|
|
Pack-Chromium:
|
|
needs: Build
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/download-artifact@v3
|
|
with:
|
|
name: build
|
|
|
|
- name: Configure manifest
|
|
uses: Amadevus/pwsh-script@v2
|
|
with:
|
|
script: Remove-Item "manifest.v2.json"
|
|
|
|
- name: Pack extension
|
|
uses: TheDoctor0/zip-release@0.6.2
|
|
with:
|
|
filename: PasswordGenerator-Chromium.zip
|
|
|
|
- name: Drop artifacts (Chromium)
|
|
uses: actions/upload-artifact@v3.1.1
|
|
with:
|
|
name: Chromium
|
|
path: PasswordGenerator-Chromium.zip
|
|
|
|
- name: Attach build to release
|
|
uses: xresloader/upload-to-github-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
file: PasswordGenerator-Chromium.zip
|
|
draft: false
|
|
update_latest_release: true
|
|
|
|
Pack-Firefox:
|
|
needs: Build
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/download-artifact@v3
|
|
with:
|
|
name: build
|
|
|
|
- name: Configure manifest
|
|
uses: Amadevus/pwsh-script@v2
|
|
with:
|
|
script: |
|
|
Remove-Item "manifest.json"
|
|
Rename-Item "manifest.v2.json" "manifest.json"
|
|
|
|
- name: Pack extension
|
|
uses: TheDoctor0/zip-release@0.6.2
|
|
with:
|
|
filename: PasswordGenerator-Firefox.zip
|
|
|
|
- name: Drop artifacts (Firefox)
|
|
uses: actions/upload-artifact@v3.1.1
|
|
with:
|
|
name: Firefox
|
|
path: PasswordGenerator-Firefox.zip
|
|
|
|
- name: Attach build to release
|
|
uses: xresloader/upload-to-github-release@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
file: PasswordGenerator-Firefox.zip
|
|
draft: false
|
|
update_latest_release: true
|
|
|
|
Chrome:
|
|
needs: Pack-Chromium
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Download artifacts (Chromium)
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: Chromium
|
|
|
|
- name: Publish to Chrome Web Store
|
|
uses: wdzeng/chrome-extension@v1
|
|
with:
|
|
extension-id: jnjobgjobffgmgfnkpkjfjkkfhfikmfl
|
|
zip-path: PasswordGenerator-Chromium.zip
|
|
client-id: ${{ secrets.CHROME_CLIENT_ID }}
|
|
client-secret: ${{ secrets.CHROME_CLIENT_SECRET }}
|
|
refresh-token: ${{ secrets.CHROME_REFRESH_TOKEN }}
|
|
|
|
Edge:
|
|
needs: Pack-Chromium
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Download artifacts (Chromium)
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: Chromium
|
|
|
|
- name: Publish to Edge Addons
|
|
uses: wdzeng/edge-addon@v1
|
|
with:
|
|
product-id: ${{ secrets.EDGE_PRODUCT_ID }}
|
|
zip-path: PasswordGenerator-Chromium.zip
|
|
client-id: ${{ secrets.EDGE_CLIENT_ID }}
|
|
client-secret: ${{ secrets.EDGE_CLIENT_SECRET }}
|
|
access-token-url: ${{ secrets.EDGE_ACCESS_TOKEN_URL }}
|
|
|
|
Firefox:
|
|
needs: Pack-Firefox
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Download artifacts (Firefox)
|
|
uses: actions/download-artifact@v3
|
|
with:
|
|
name: Firefox
|
|
|
|
- name: Publish to Firefox
|
|
uses: wdzeng/firefox-addon@v1
|
|
with:
|
|
addon-guid: ${{ secrets.FIREFOX_EXT_UUID }}
|
|
xpi-path: PasswordGenerator-Firefox.zip
|
|
jwt-issuer: ${{ secrets.FIREFOX_API_KEY }}
|
|
jwt-secret: ${{ secrets.FIREFOX_CLIENT_SECRET }}
|