Skip to content

Add beta suffix to notification #17

Add beta suffix to notification

Add beta suffix to notification #17

Workflow file for this run

name: Build beta
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build_and_release:
runs-on: ubuntu-latest
env:
VITE_SENTRY_DSN: ${{ secrets.VITE_SENTRY_DSN }}
VITE_COMMIT_SHA: ${{ github.sha }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
run_install: false
- uses: actions/setup-node@v3
with:
cache: pnpm
node-version-file: .nvmrc
registry-url: https://registry.npmjs.org
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Build and package
run: pnpm run pack:beta
- uses: actions/upload-artifact@v3
with:
name: chrome-extension-beta-${{ github.sha }}
path: chrome-extension.zip
- name: Release beta
uses: ./.github/actions/notify-release
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
SLACK_CHANNEL_ID: ${{ vars.SLACK_CHANNEL_ID }}
# The commit message is only present on push events
COMMIT_MSG: ${{ github.event.head_commit.message }}
COMMIT_SHA: ${{ github.sha }}