Skip to content

Update node.js.yml

Update node.js.yml #3

Workflow file for this run

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Node.js CI
on:
push:
branches: [ "gh-pages" ]
permissions:
id-token: write
pages: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
#cache: 'pnpm'
#cache-dependency-path: "common/config/rush"
- run: npm install -g @microsoft/rush
- run: rush install
- run: BROWSERSLIST_IGNORE_OLD_DATA=1 PUBLIC_URL=https://MfN-Berlin.github.io/mediasphere-touch-beetle-app/ rush build
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3 # or specific "vX.X.X" version tag for this action
with:
path: packages/touch-beetle-demo-frontend/build
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4