Skip to content

NPM Publish

NPM Publish #1

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 ci
- run: |
npm run test:node
npm run test:native
- run: npm publish --access public