Skip to content

Port extensions workflows to monorepo #1

Port extensions workflows to monorepo

Port extensions workflows to monorepo #1

name: Extensions - Modtype BepInEx Test
on:
push:
branches: [ master ]
paths:
- 'extensions/modtype-bepinex/**'
pull_request:
branches: [ master ]
paths:
- 'extensions/modtype-bepinex/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Read Node.js version from package.json
id: node-version
shell: pwsh
run: |
$packageJson = Get-Content package.json | ConvertFrom-Json
$nodeVersion = $packageJson.engines.node
echo "NODE_VERSION=$nodeVersion" >> $env:GITHUB_OUTPUT
echo "Using Node.js version: $nodeVersion"
- name: Use Node.js
uses: actions/setup-node@v6
with:
node-version: ${{ steps.node-version.outputs.NODE_VERSION }}
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
architecture: x64
- name: Install dependencies
run: npm install
working-directory: extensions/modtype-bepinex
- name: Build
run: npm run build
working-directory: extensions/modtype-bepinex