Skip to content

Commit 4b5f92e

Browse files
author
Adam Sasine
authored
Merge pull request #9 from asasine/feature/asasine/npm-publish-action
Make the project ready to be published to NPM
2 parents 2bba7e8 + cfc70ff commit 4b5f92e

2 files changed

Lines changed: 34 additions & 1 deletion

File tree

.github/workflows/npm-publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish package
2+
3+
on:
4+
release:
5+
types: [published]
6+
workflow_dispatch:
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-node@v2
14+
with:
15+
registry-url: https://registry.npmjs.org/
16+
- run: npm install
17+
- run: npm publish --access public
18+
env:
19+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

package.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,22 @@
99
],
1010
"author": {
1111
"name": "Adam Sasine",
12-
"email": "adam.sasine@gmail.com",
1312
"url": "https://github.com/asasine"
1413
},
14+
"homepage": "https://github.com/asasine/BehaviorTree.NET",
15+
"bugs": {
16+
"url": "https://github.com/asasine/BehaviorTree.NET/issues"
17+
},
18+
"license": "MIT",
19+
"files": [
20+
"/LICENSE.md",
21+
"/LICENSE.md.meta",
22+
"/README.md",
23+
"/README.md.meta",
24+
"/package.json",
25+
"/package.json.meta",
26+
"/Runtime",
27+
"/Runtime.meta",
28+
],
1529
"type": "library"
1630
}

0 commit comments

Comments
 (0)