Skip to content

Commit

Permalink
add emulatorjs to npm (#775)
Browse files Browse the repository at this point in the history
Create NPM release #755
  • Loading branch information
allancoding committed Feb 13, 2024
1 parent 507fdcd commit 2cce543
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 10 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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 }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ roms/
data/emulator.min.js
data/emulator.min.css
data/cores
.DS_Store
.DS_Store
.vscode/*
7 changes: 0 additions & 7 deletions .vscode/settings.json

This file was deleted.

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
{
"name": "EmulatorJS",
"name": "@emulatorjs/emulatorjs",
"version": "4.0.11",
"repository": "https://github.com/EmulatorJS/EmulatorJS.git",
"repository": {
"type": "git",
"url": "https://github.com/EmulatorJS/EmulatorJS.git"
},
"license": "GPL-3.0",
"description": "EmulatorJS is a frontend for RetroArch in the web browser.",
"scripts": {
"start": "http-server"
},
Expand Down

0 comments on commit 2cce543

Please sign in to comment.