Skip to content

style(footer): put non-affiliation notice on its own centered line #79

style(footer): put non-affiliation notice on its own centered line

style(footer): put non-affiliation notice on its own centered line #79

Workflow file for this run

name: Versioning
on:
push:
branches:
- main
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6.0.2
with:
fetch-depth: 0
- name: Read version from package.json
id: pkg
run: echo "version=$(jq -r .version package.json)" >> "$GITHUB_OUTPUT"
- name: Check if tag already exists
id: check
run: |
if git rev-parse "v${{ steps.pkg.outputs.version }}" >/dev/null 2>&1; then
echo "exists=true" >> "$GITHUB_OUTPUT"
else
echo "exists=false" >> "$GITHUB_OUTPUT"
fi
- name: Create tag and GitHub release
if: steps.check.outputs.exists == 'false'
env:
GH_TOKEN: ${{ secrets.DATA_UPDATE_PAT }}
run: |
VERSION="v${{ steps.pkg.outputs.version }}"
git tag "$VERSION"
git push origin "$VERSION"
gh release create "$VERSION" \
--title "$VERSION" \
--generate-notes