This repository has been archived by the owner on Oct 23, 2024. It is now read-only.
Bump @typescript-eslint/eslint-plugin from 8.8.1 to 8.9.0 #860
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 CD | |
on: | |
push: | |
pull_request: | |
types: [opened] | |
jobs: | |
build: | |
name: Developer build in Node.js matrix | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x, 16.x, 18.x, 20.x, 21.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Build app in development mode | |
run: | | |
npm ci | |
npm run build --if-present | |
deploy: | |
name: Deploy to GitHub Pages | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | |
needs: [build] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Deploy to GitHub Pages | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
npm ci | |
sed -i "s/^\(\s*commit: '\)[^']*\('.*\)/\1$(git rev-parse --short HEAD)\2/" src/environments/buildinfo.ts | |
sed -i "s/^\(\s*lastChange: '\)[^']*\('.*\)/\1$(TZ=UTC git log -1 --format=%cd --date='format-local:%Y-%m-%d %H:%M:%S')\2/" src/environments/buildinfo.ts | |
sed -i "s/^\(\s*buildTime: '\)[^']*\('.*\)/\1$(date --utc +'%Y-%m-%d %H:%M:%S')\2/" src/environments/buildinfo.ts | |
cat src/environments/buildinfo.ts | |
npm run -- ng build --base-href /stitch-compute-angular/ | |
npm install angular-cli-ghpages | |
./node_modules/.bin/angular-cli-ghpages --dir dist/stitch-compute-angular --no-silent --name 'CI/CD deployment' --email 'devnull@cgarbs.de' |