build(deps-dev): bump typescript from 5.2.2 to 5.4.5 #2412
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: CI Workflow | |
on: | |
push: | |
# trigger on all branches except for dependabot-triggered push events | |
branches-ignore: [dependabot/**] | |
tags: | |
- 'v*' # trigger on all tags | |
paths-ignore: | |
- '**.md' # ignore changes in markdown files | |
pull_request: | |
branches: [develop] | |
types: [opened, synchronize, reopened] | |
# globals | |
env: | |
# general settings | |
MAIN_REPO_OWNER: musicEnfanthen # Main repo owner (default: webern-unibas-ch; should not be changed) | |
jobs: | |
test: | |
name: Run tests (Node v${{ matrix.node-version }}, ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [18.19, 20.9] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # ratchet:actions/checkout@v4.1.4 | |
with: | |
fetch-depth: 0 # Get all history and branches | |
- name: Set up node ${{ matrix.node-version}} | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # ratchet:actions/setup-node@v4.0.2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- name: yarn install dependencies | |
run: | | |
yarn install | |
- name: Run CI tests with coverage | |
run: | | |
yarn run test:ci | |
- name: Test build for GH Pages | |
run: | | |
yarn run build:gh | |
deploy: | |
name: Deploy app from main (Node v${{ matrix.node-version }}, ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
needs: test | |
# run only on main | |
if: github.ref == 'refs/heads/main' | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [20.9] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # ratchet:actions/checkout@v4.1.4 | |
- name: Set up node ${{ matrix.node-version}} | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # ratchet:actions/setup-node@v4.0.2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'yarn' | |
- name: yarn install dependencies | |
run: | | |
yarn install | |
- name: Build app for GH Pages | |
run: | | |
yarn run build:gh | |
- name: Create default index.html for locales | |
run: | | |
cp locale-base.html dist/awg-website/index.html | |
- name: Deploy to GH Pages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
yarn run deploy:ci | |
release: | |
name: Create Release from tag | |
runs-on: ${{ matrix.os }} | |
needs: test | |
# run only on tags | |
if: startsWith(github.ref, 'refs/tags/') | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
node-version: [20.9] | |
steps: | |
- name: Get tag version | |
id: get_version | |
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/} | |
- name: Create Release | |
id: create_release | |
if: ${{ success() && startsWith(github.ref, 'refs/tags/') }} | |
uses: softprops/action-gh-release@9d7c94cfd0a1f3ed45544c887983e9fa900f0564 # ratchet:softprops/action-gh-release@v2.0.4 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
TAG_VERSION: ${{ steps.get_version.outputs.VERSION }} | |
with: | |
name: Release ${{ env.TAG_VERSION }} | |
body: "Website of the [Anton Webern Gesamtausgabe](https://www.anton-webern.ch), located at the Department of Musicology of the University of Basel. It is written in [Angular](https://angular.io/) and runs on [www.anton-webern.ch](https://www.anton-webern.ch).\n\n Changes since last release: https://github.com/${{ github.repository }}/blob/${{ env.TAG_VERSION }}/CHANGELOG.md" | |
draft: false | |
prerelease: false |