Skip to content

chore(deps-dev): bump html-webpack-plugin from 5.6.6 to 5.6.8 #42

chore(deps-dev): bump html-webpack-plugin from 5.6.6 to 5.6.8

chore(deps-dev): bump html-webpack-plugin from 5.6.6 to 5.6.8 #42

Workflow file for this run

name: Release & Deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
pages: write
deployments: write
packages: read
jobs:
release:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
cache: "pip"
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install --prefer-binary -r requirements.txt
- name: Cache Geocode Database
uses: actions/cache@v5
with:
path: cache.sqlite
key: geocode-cache-${{ hashFiles('conf/series_metadata.json', 'conf/event_blueprints.json') }}
restore-keys: |
geocode-cache-
- uses: actions/setup-node@v6
with:
node-version: "lts/*"
cache: "npm"
- name: Install node dependencies
run: npm install
- name: Initial Build (Fallback/Manual)
run: |
# Get latest tag (e.g. v1.16.1) or fallback to 0.0.0
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "0.0.0")
# Strip the 'v' prefix for the build
APP_VERSION=${LATEST_TAG#v} npm run build
- name: Upload Processed Data Artifact
uses: actions/upload-artifact@v7
with:
name: processed-data
path: gen/processed_series_data.json
- name: Upload Validation Reports Artifact
uses: actions/upload-artifact@v7
with:
name: validation-reports
path: gen/reports/
if-no-files-found: ignore
- name: Tag & Release
id: semantic
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
run: npx semantic-release --repository-url "https://github.com/${{ github.repository }}.git"
- name: Upload Pages Artifact
if: github.event_name != 'pull_request' && steps.semantic.outputs.new-release-published == 'true'
uses: actions/upload-pages-artifact@v5
with:
path: "./dist"
outputs:
new-release-published: ${{ steps.semantic.outputs.new-release-published }}
deploy:
needs: [release]
if: github.event_name != 'pull_request' && needs.release.outputs.new-release-published == 'true'
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5