Skip to content

Update action.yml

Update action.yml #18

Workflow file for this run

name: Build Chrome extension
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-extension:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install packages
run: npm install
shell: /bin/bash --noprofile --norc -e -o pipefail
- name: Install packages
run: npm ci
shell: bash
- name: Build extension
run: npm run build --if-present
shell: bash
- name: Pack extension
working-directory: out
run: zip -r extension-${{ github.event.pull_request.head.sha }}.zip *
shell: bash
- name: Upload extension archive
uses: actions/upload-artifact@v3
with:
name: extension-${{ github.sha }}
path: out/extension-${{ github.event.pull_request.head.sha }}.zip