EmulatorJS/.github/workflows/npm.yml

21 lines
509 B
YAML
Raw Normal View History

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'
2024-02-13 15:44:19 +00:00
- run: npm i
- run: npm ci
2024-02-13 15:44:19 +00:00
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}