Skip to content

unblock build (ReportEventA const-fix + disable plthook_detour) #24

unblock build (ReportEventA const-fix + disable plthook_detour)

unblock build (ReportEventA const-fix + disable plthook_detour) #24

Workflow file for this run

name: Release NodeJS Package
on:
workflow_dispatch:
pull_request:
push:
branches: [ master, develop ]
paths:
- '.github/workflows/release-nodejs.yml'
- 'source/ports/node_port/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: NodeJS Port Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install MetaCall Unix
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
run: curl -sL https://raw.githubusercontent.com/metacall/install/master/install.sh | sh -s -- --debug
- name: Install MetaCall Windows
if: matrix.os == 'windows-latest'
run: powershell -NoProfile -ExecutionPolicy Unrestricted -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; &([scriptblock]::Create((Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/metacall/install/master/install.ps1')))"
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install Dependencies
working-directory: source/ports/node_port
run: npm install
- name: Test the NodeJS Port
working-directory: source/ports/node_port
run: node test.js
release:
name: Release NodeJS Port
runs-on: ubuntu-latest
needs: test
if: ${{ github.event_name != 'pull_request' }}
steps:
- name: Check out the repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Release the port
working-directory: source/ports/node_port
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: ./upload.sh