Release v0.5.2 #26
Workflow file for this run
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: "(default) Submit to Web Store" | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: | |
name: build-package | |
env: | |
PLASMO_PUBLIC_SENTRY_DSN: ${{ vars.PLASMO_PUBLIC_SENTRY_DSN }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cache pnpm modules | |
uses: actions/cache@v3 | |
with: | |
path: ~/.pnpm-store | |
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }} | |
restore-keys: | | |
${{ runner.os }}- | |
- uses: pnpm/action-setup@v2.2.4 | |
with: | |
version: 8.2.0 | |
run_install: true | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v3.4.1 | |
with: | |
node-version: 16.x | |
cache: "pnpm" | |
- name: Transform to "Google Workspace Zoom Default" | |
run: pnpm transform-ext | |
- name: Build the extension | |
run: pnpm build --source-maps | |
- name: Check file sizes | |
run: pnpm bundlesize | |
- name: get-npm-version | |
id: package-version | |
uses: martinbeentjes/npm-get-version-action@v1.3.1 | |
- name: Create Sentry release | |
uses: getsentry/action-release@v1 | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | |
with: | |
environment: production | |
sourcemaps: './build/chrome-mv3-prod' | |
ignore_empty: true | |
version: ${{ steps.package-version.outputs.current-version }} | |
- name: Remove sourcemaps from bundle | |
run: rm ./build/chrome-mv3-prod/*.map | |
- name: Package extension artifact | |
run: pnpm package | |
- name: Browser Platform Publish | |
uses: PlasmoHQ/bpp@v3 | |
with: | |
keys: ${{ secrets.SUBMIT_KEYS }} | |
artifact: build/chrome-mv3-prod.zip |