mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 10:56:30 +00:00
20 lines
509 B
YAML
20 lines
509 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 i
|
|
- run: npm ci
|
|
- run: npm publish --access public
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|