EmulatorJS/.github/workflows/npm.yml
Allan Niles 2cce5430ae
add emulatorjs to npm (#775)
Create NPM release #755
2024-02-12 21:58:10 -06:00

19 lines
474 B
YAML

name: Publish Package to npmjs
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
if: github.repository == 'EmulatorJS/EmulatorJS'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}