Skip to content

chore(deps): update dependency @types/node to ^20.17.10 (#583) #588

chore(deps): update dependency @types/node to ^20.17.10 (#583)

chore(deps): update dependency @types/node to ^20.17.10 (#583) #588

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
release-please:
name: Release Please
runs-on: ubuntu-latest
outputs:
created: ${{ steps.release.outputs.release_created }}
version: ${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }}
tag_name: ${{ steps.release.outputs.tag_name }}
steps:
- id: release
name: Release
uses: googleapis/release-please-action@v4
with:
release-type: simple
submit:
name: Submit
runs-on: ubuntu-latest
needs:
- release-please
if: github.event_name == 'workflow_dispatch' || needs.release-please.outputs.created
strategy:
fail-fast: false
matrix:
platform:
- chrome
- firefox
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
- name: Install
run: yarn install
- name: Build
run: yarn build:${{ matrix.platform }}
env:
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
- name: Update Manifest
run: npx dot-json@1 dist/manifest.json version ${{ needs.release-please.outputs.version }}
- name: Submit
run: |
case ${{ matrix.platform }} in
chrome)
cd dist && npx chrome-webstore-upload-cli upload --auto-publish
;;
firefox)
git archive --format=zip -o source.zip ${{ github.sha }}
cd dist && npx web-ext sign --channel listed --upload-source-code ../source.zip --approval-timeout 60000
;;
esac
env:
CLIENT_ID: ${{ secrets.GOOGLE_CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.GOOGLE_CLIENT_SECRET }}
REFRESH_TOKEN: ${{ secrets.GOOGLE_REFRESH_TOKEN }}
EXTENSION_ID: ${{ secrets.EXTENSION_ID }}
WEB_EXT_API_KEY: ${{ secrets.WEB_EXT_API_KEY }}
WEB_EXT_API_SECRET: ${{ secrets.WEB_EXT_API_SECRET }}
- name: Upload Release Artifact
if: ${{ always() }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ARCHIVE_NAME: ${{ github.event.repository.name }}-${{ matrix.platform }}-${{ needs.release-please.outputs.version }}.zip
run: cd dist && zip -r $ARCHIVE_NAME . && gh release upload ${{ needs.release-please.outputs.tag_name }} $ARCHIVE_NAME