Skip to content

Commit 9b560ec

Browse files
committed
ci(semantic-release): hook for running dist creation
1 parent 7428668 commit 9b560ec

File tree

6 files changed

+39
-2
lines changed

6 files changed

+39
-2
lines changed

.releaserc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33
"@semantic-release/commit-analyzer",
44
"@semantic-release/release-notes-generator",
55
"@semantic-release/changelog",
6+
[
7+
"@semantic-release/exec",
8+
{
9+
"prepareCmd": "npm run build"
10+
}
11+
],
612
"@semantic-release/git",
713
[
814
"@semantic-release/npm",

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
language: node_js
2+
node_js:
3+
- "node"
24
install:
35
- npm install
46
script:

Assets/FluidBehaviorTree/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@
2424
},
2525
"homepage": "https://github.com/ashblue/fluid-behavior-tree#readme",
2626
"dependencies": {}
27-
}
27+
}

create-dist.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ async function init () {
1616
copyFiles();
1717
crossPopulatePackages();
1818
fs.copyFileSync(`${SOURCE}/package.json`, `${OUTPUT}/package.json`);
19+
20+
console.log(`Copied files from ${SOURCE} to ${OUTPUT}`);
1921
}
2022

2123
function copyFiles() {

package-lock.json

Lines changed: 26 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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.fluid.behavior-tree",
3-
"version": "1.0.0",
3+
"version": "2.0.0",
44
"unity": "2018.1",
55
"displayName": "Fluid Behavior Tree",
66
"description": "A micro-framework for creating Behavior Trees based upon the builder pattern",
@@ -40,6 +40,7 @@
4040
"@commitlint/travis-cli": "^7.6.1",
4141
"@semantic-release/changelog": "^3.0.2",
4242
"@semantic-release/commit-analyzer": "^6.1.0",
43+
"@semantic-release/exec": "^3.3.2",
4344
"@semantic-release/git": "^7.0.8",
4445
"@semantic-release/github": "^5.2.10",
4546
"@semantic-release/npm": "^5.1.7",

0 commit comments

Comments
 (0)