Skip to content

Commit

Permalink
publish to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
aadityabhatia committed Aug 3, 2023
1 parent f2952ae commit 79c8c77
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/npm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish to npmjs

on:
push:
branches: ["main"]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
8 changes: 5 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"name": "@corsaircoalition/armada-assault",
"version": "1",
"description": "a modular generals.io bot that implements advanced learning techniques",
"version": "2.0.0",
"description": "generals.io bot actions generator",
"main": "out/index.js",
"type": "module",
"dependencies": {
"@corsaircoalition/common": "^1.0.5",
"@redis/client": "^1.5.8",
"commander": "^10.0.1",
"sterta": "^2.2.1"
},
Expand All @@ -15,6 +14,7 @@
"@types/node": "^18.16.16",
"typescript": "^5.1.3"
},
"bin": "./out/index.js",
"files": [
"out"
],
Expand All @@ -40,5 +40,5 @@
],
"author": "Aaditya Bhatia",
"license": "Apache-2.0",
"homepage": "https://github.com/CorsairCoalition/docs#readme"
"homepage": "https://corsaircoalition.github.io/"
}

0 comments on commit 79c8c77

Please sign in to comment.