Skip to content

Export python music box configuration #110

Export python music box configuration

Export python music box configuration #110

Workflow file for this run

name: Javascript Tests
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
release:
types:
- published
permissions:
contents: read
id-token: write
jobs:
test:
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest, windows-latest, macos-latest]
node-version: ["v22", "v24"]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm ci
- name: Test
run: npm test
publish:
runs-on: ubuntu-latest
if: (github.event_name == 'release' && github.event.action == 'published') || github.event_name == 'workflow_dispatch'
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup node
uses: actions/setup-node@v6
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Test
run: npm run test
- name: Copy javascript readme
run: cp javascript/README.md README.md # npm uses the root README for the package page
- name: List config
run: |
npm --version
node --version
npm config list -l
- name: Publish to npm
run: NODE_AUTH_TOKEN="" npm publish --access public --provenance