Build & Publish Extension #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |