diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..65ce89f6 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,21 @@ +name: Publish to NPM +on: + push: + branches: ['main'] +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4.2.2 + - name: Setup Node + uses: actions/setup-node@v3.9.1 + with: + node-version: 'lts' + registry-url: 'https://registry.npmjs.org' + - name: Install dependencies and build 🔧 + run: npm ci && npm run build + - name: Publish package on NPM 📦 + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.npmignore b/.npmignore new file mode 100644 index 00000000..2d2ecd68 --- /dev/null +++ b/.npmignore @@ -0,0 +1 @@ +.git/ diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..c9eeb0a0 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,13 @@ +{ + "name": "monkeygg2", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "monkeygg2", + "version": "1.0.0", + "license": "WTFPL" + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 00000000..fec6a34e --- /dev/null +++ b/package.json @@ -0,0 +1,45 @@ +{ + "name": "monkeygg2", + "version": "1.0.0", + "description": "Your Friendly Neighborhood Games Site", + "keywords": [ + "games", + "flash", + "gaming", + "proxy", + "html5-games", + "gaming-website", + "flash-games", + "unblocked", + "unblocked-games", + "school-proxy", + "school-hacks", + "monkeygg2", + "violetgg2" + ], + "homepage": "https://github.com/MonkeyGG2/monkeygg2.github.io#readme", + "bugs": { + "url": "https://github.com/MonkeyGG2/monkeygg2.github.io/issues" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/MonkeyGG2/monkeygg2.github.io.git" + }, + "license": "WTFPL", + "author": "avscs", + "files": [ + "README.md", + "404.html", + "config.jsonc", + "favicon.ico", + "index.html", + "jsconfig.json", + "LICENSE", + "package.json", + "css", + "fonts", + "games", + "imgs", + "js" + ] +}