0.4.12 #34
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
on: | |
push: | |
tags: | |
- '*' | |
name: release | |
jobs: | |
check: | |
name: check | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
# Unzip committed zip files into ./unzipped | |
- run: "mkdir ./unzipped" | |
- run: "unzip ./dist/chrome.zip -d ./unzipped/chrome" | |
- run: "unzip ./dist/firefox.zip -d ./unzipped/firefox" | |
- run: "unzip ./dist/safari.zip -d ./unzipped/safari" | |
- run: "unzip ./dist/website.zip -d ./unzipped/website" | |
# Build folders into ./dist | |
- run: "npm ci && npm run build" | |
# Compare unzipped committed zip files and built folders | |
- run: "diff -r ./unzipped/chrome ./dist/chrome" | |
- run: "diff -r ./unzipped/firefox ./dist/firefox" | |
- run: "diff -r ./unzipped/safari ./dist/safari" | |
- run: "diff -r ./unzipped/website ./dist/website" | |
# Clean ./unzipped | |
- run: "rm -rf ./unzipped" | |
# Restore built zip files | |
- run: "git restore ./dist/chrome.zip" | |
- run: "git restore ./dist/firefox.zip" | |
- run: "git restore ./dist/safari.zip" | |
- run: "git restore ./dist/website.zip" | |
# Compare other files | |
- run: "[[ -z $(git status --porcelain) ]]" |