Publish DevTools extension to stores #3
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@v3 | ||
- name: Configure Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20.x | ||
cache: 'npm' | ||
- uses: actions/cache@v3 | ||
id: devtools-cache | ||
with: | ||
path: | | ||
node_modules | ||
packages/lexical-devtools/.wxt | ||
~/.cache/ms-playwright | ||
key: ${{ runner.os }}-${{ runner.arch }}v${{ secrets.CACHE_VERSION }}-${{ hashFiles('package-lock.json') }} | ||
- name: Install dependencies | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
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 }} | ||
BUILD_VERSION: ${{ input.build_version }} | ||
Check failure on line 48 in .github/workflows/devtools-extension-publish.yml GitHub Actions / Publish DevTools extension to storesInvalid workflow file
|