Skip to content

v15.0.0

v15.0.0 #6

Workflow file for this run

name: NPM Publish
on:
release:
types: [created]
workflow_dispatch:
env:
NODE_VERSION: 20
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
registry-url: https://registry.npmjs.org/
- name: Install Python setuptools
# Reasoning for this in `ci.yml`
run: python3 -m pip install --break-system-packages setuptools
- name: Install Dependencies
run: npm i
- name: Run tests
run: npm test
- name: Publish to NPM
run: npm publish --access public