Skip to content

Build & Publish Extension #4

Build & Publish Extension

Build & Publish Extension #4

name: Build & Publish Extension
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout the repository to the runner
uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: Install NPM Dependencies and Build Extension
run: |
cd extension
npm ci
npm run tailwind-build
npm run webpack-build-prod
mv dist ../Bias-Buster-Extension
cd ../
sudo apt-get install -y zip
zip -r Bias-Buster-Extension.zip Bias-Buster-Extension/*
- uses: actions/upload-artifact@v4
with:
name: Bias-Buster-Extension
path: Bias-Buster-Extension.zip