Skip to content

Commit 5027159

Browse files
author
avscs
committed
npm publishing
1 parent 3fda4cb commit 5027159

File tree

4 files changed

+80
-0
lines changed

4 files changed

+80
-0
lines changed

.github/workflows/publish.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Publish to NPM
2+
on:
3+
push:
4+
branches: ['main']
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v4.2.2
11+
- name: Setup Node
12+
uses: actions/setup-node@v3.9.1
13+
with:
14+
node-version: 'lts'
15+
registry-url: 'https://registry.npmjs.org'
16+
- name: Install dependencies and build 🔧
17+
run: npm ci && npm run build
18+
- name: Publish package on NPM 📦
19+
run: npm publish
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.git/

package-lock.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"name": "monkeygg2",
3+
"version": "1.0.0",
4+
"description": "Your Friendly Neighborhood Games Site",
5+
"keywords": [
6+
"games",
7+
"flash",
8+
"gaming",
9+
"proxy",
10+
"html5-games",
11+
"gaming-website",
12+
"flash-games",
13+
"unblocked",
14+
"unblocked-games",
15+
"school-proxy",
16+
"school-hacks",
17+
"monkeygg2",
18+
"violetgg2"
19+
],
20+
"homepage": "https://github.com/MonkeyGG2/monkeygg2.github.io#readme",
21+
"bugs": {
22+
"url": "https://github.com/MonkeyGG2/monkeygg2.github.io/issues"
23+
},
24+
"repository": {
25+
"type": "git",
26+
"url": "git+https://github.com/MonkeyGG2/monkeygg2.github.io.git"
27+
},
28+
"license": "WTFPL",
29+
"author": "avscs",
30+
"files": [
31+
"README.md",
32+
"404.html",
33+
"config.jsonc",
34+
"favicon.ico",
35+
"index.html",
36+
"jsconfig.json",
37+
"LICENSE",
38+
"package.json",
39+
"css",
40+
"fonts",
41+
"games",
42+
"imgs",
43+
"js"
44+
]
45+
}

0 commit comments

Comments
 (0)