Skip to content

build: update extension version #23

build: update extension version

build: update extension version #23

Workflow file for this run

name: Build
on:
push:
branches:
- main
- develop
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: '10.10.0'
- name: Install dependencies
run: pnpm install
- name: Build extension
run: pnpm build
- name: Create Chrome zip
run: |
cd dist
zip -r ../chrome.zip .
cd ..
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: chrome
path: chrome.zip
retention-days: 7
- name: Update Job Summary with Artifact Download Link
run: |
echo "## Build succeeded!" >> $GITHUB_STEP_SUMMARY
echo "- **Commit**: \`${GITHUB_SHA:0:7}\`" >> $GITHUB_STEP_SUMMARY
echo "- **Artifact Download**: [Download here]($GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID#artifacts)" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "_This build was triggered by a commit on branch **main** or **develop**._" >> $GITHUB_STEP_SUMMARY