Skip to content

Bump body-parser and express #156

Bump body-parser and express

Bump body-parser and express #156

Workflow file for this run

name: Continuous Integration and Deployment
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
continuous_integration:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
steps:
- name: Checkout code 🛎️
uses: actions/checkout@v3
with:
clean: true
- name: Set Node Version
uses: actions/setup-node@v3
with:
node-version: 20.13.1
registry-url: https://npm.pkg.github.com/
scope: '@3um-group'
env:
NODE_AUTH_TOKEN: ${{secrets.GPR_PRIVATE_READ_TOKEN}} # <--- ENV before npm ci
- name: Setup .npmrc file
run: |
npm config set "@3um-group:registry" "https://npm.pkg.github.com/"
npm config set "//npm.pkg.github.com/:_authToken" "${{ secrets.NODE_AUTH_TOKEN }}"
env:
NODE_AUTH_TOKEN: ${{ secrets.GPR_PRIVATE_READ_TOKEN }}
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }}
name: List the state of node modules
continue-on-error: true
run: npm list
- name: Install dependencies
run: npm install --legacy-peer-deps
- name: Run Test
run: npm test