Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ on:
branches:
- main
- next
workflow_dispatch:
inputs:
publish_chrome_extension:
description: Build and publish the Chrome extension without an npm release
required: true
Comment thread
Juice10 marked this conversation as resolved.
Outdated
default: false
type: boolean
Comment thread
Juice10 marked this conversation as resolved.
Outdated

concurrency: ${{ github.workflow }}-${{ github.ref }}

Expand Down Expand Up @@ -43,12 +50,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build Chrome Extension
if: steps.changesets.outputs.published == 'true'
if: steps.changesets.outputs.published == 'true' || inputs.publish_chrome_extension
run: NODE_OPTIONS='--max-old-space-size=4096' DISABLE_WORKER_INLINING=true yarn turbo run prepublish --filter=@rrweb/web-extension
Comment thread
Juice10 marked this conversation as resolved.

- name: Publish Chrome Extension
uses: mnao305/chrome-extension-upload@v5.0.0
if: steps.changesets.outputs.published == 'true' && github.ref == 'refs/heads/main'
if: (steps.changesets.outputs.published == 'true' || inputs.publish_chrome_extension) && github.ref == 'refs/heads/main'
with:
extension-id: 'pdaldeopoccdhlkabbkcjmecmmoninhe'
file-path: ./packages/web-extension/dist/chrome.zip
Expand All @@ -59,7 +66,7 @@ jobs:

- name: Publish Next Chrome Extension
uses: mnao305/chrome-extension-upload@v5.0.0
if: steps.changesets.outputs.published == 'true' && github.ref == 'refs/heads/next'
if: (steps.changesets.outputs.published == 'true' || inputs.publish_chrome_extension) && github.ref == 'refs/heads/next'
with:
extension-id: ${{ secrets.NEXT_CWS_EXTENSION_ID }}
file-path: ./packages/web-extension/dist/chrome.zip
Expand Down
Loading