Bump eslint from 9.16.0 to 9.17.0 #2209
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
# Node.js CI workflow | |
# The base href is set in the npm build script | |
name: Node.js CI | |
on: [push, pull_request, merge_group] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
IS_PUSH_MAIN: ${{ github.ref == 'refs/heads/main' }} | |
IS_PUSH_TAG: ${{ startsWith(github.ref, 'refs/tags/') && !contains(github.ref, 'beta') }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Install dependencies | |
run: yarn install --frozen-lockfile | |
- name: Run lint | |
run: yarn run lint | |
- name: Build lib | |
run: yarn run build-lib | |
- name: Run tests | |
run: yarn run test-ci | |
- name: Build app | |
run: | | |
BUILD_APP_SCRIPT=build-app-trunk | |
if ${{ env.IS_PUSH_TAG }}; then | |
BUILD_APP_SCRIPT=build-app-stable | |
fi | |
yarn run $BUILD_APP_SCRIPT | |
- name: Push to gh-pages (if tag or main branch) | |
if: env.IS_PUSH_MAIN == 'true' || env.IS_PUSH_TAG == 'true' | |
run: | | |
DEPLOY_DIR=./demo/trunk | |
if ${{ env.IS_PUSH_TAG }}; then | |
DEPLOY_DIR=./demo/stable | |
fi | |
ALL=/* | |
git config user.email github-actions@github.com | |
git config user.name github-actions | |
git checkout gh-pages | |
rm -Rf $DEPLOY_DIR$ALL | |
cp -Rf ./dist/dwv-angular-app/browser/* $DEPLOY_DIR | |
git add -A $DEPLOY_DIR | |
git diff-index --quiet HEAD || | |
git commit -m "CI run ${{ github.run_number }} pushed to gh-pages" | |
git push -fq origin gh-pages |