Publish DevTools extension to stores #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish DevTools extension to stores | |
on: | |
workflow_dispatch: | |
inputs: | |
build_version: | |
description: 'Build version' | |
required: true | |
default: '0' | |
type: number | |
jobs: | |
release: | |
if: github.repository_owner == 'facebook' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Configure Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Zip & submit to stores | |
run: npm run publish-extension | |
env: | |
EDGE_ACCESS_TOKEN_URL: ${{ secrets.EXTENSION_EDGE_ACCESS_TOKEN_URL }} | |
EDGE_CLIENT_SECRET: ${{ secrets.EXTENSION_EDGE_CLIENT_SECRET }} | |
EDGE_PRODUCT_ID: ${{ secrets.EXTENSION_EDGE_PRODUCT_ID }} | |
EDGE_CLIENT_ID: ${{ secrets.EXTENSION_EDGE_CLIENT_ID }} | |
FIREFOX_EXTENSION_ID: ${{ secrets.EXTENSION_FIREFOX_EXTENSION_ID }} | |
FIREFOX_JWT_ISSUER: ${{ secrets.EXTENSION_FIREFOX_JWT_ISSUER }} | |
FIREFOX_JWT_SECRET: ${{ secrets.EXTENSION_FIREFOX_JWT_SECRET }} | |
# FBK-SWAT project within EPAM GCP | |
# https://console.cloud.google.com/apis/credentials?project=hl2-fbk-swat-t1iylu&supportedpurview=project | |
# OAuth 2.0 Client that is authorized to access "Chrome Web Store API" for "[email protected]" | |
# https://console.cloud.google.com/apis/credentials/oauthclient/720442356639-lb8144papds2t60uh2iu3vhvit4gb2fe.apps.googleusercontent.com?project=hl2-fbk-swat-t1iylu&supportedpurview=project | |
CHROME_EXTENSION_ID: ${{ secrets.EXTENSION_CHROME_EXTENSION_ID }} | |
CHROME_CLIENT_ID: ${{ secrets.EXTENSION_CHROME_CLIENT_ID }} | |
CHROME_CLIENT_SECRET: ${{ secrets.EXTENSION_CHROME_CLIENT_SECRET }} | |
CHROME_REFRESH_TOKEN: ${{ secrets.EXTENSION_CHROME_REFRESH_TOKEN }} | |
CHROME_PUBLISH_TARGET: ${{ secrets.EXTENSION_CHROME_PUBLISH_TARGET }} | |
BUILD_VERSION: ${{ inputs.build_version }} |