Skip to content

Commit

Permalink
build(media): add release deployment configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
julianpoemp committed Nov 23, 2023
1 parent a5461b1 commit 1505e80
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 3 deletions.
15 changes: 14 additions & 1 deletion libs/media/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
{
"name": "@octra/media",
"description": "This library offers classes that describes data related to media (e.g. SampleUnit class that describes one point in time of type sample with conversions to other time units) used by [Octra](https://github.com/IPS-LMU/octra).\nIf you are looking for decoding and playback of audio files see @octra/web-media library.",
"version": "0.0.12",
"dependencies": {},
"license": "MIT",
"private": false,
"author": {
"name": "Julian Poemp"
},
"bugs": {
"url": "https://github.com/IPS-LMU/octra/issues"
},
"homepage": "https://github.com/IPS-LMU/octra",
"repository": {
"type": "git",
"url": "https://github.com/IPS-LMU/octra"
},
"type": "commonjs",
"main": "./index.cjs",
"typings": "./src/index.d.ts"
Expand Down
20 changes: 19 additions & 1 deletion libs/media/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,25 @@
"version": {
"executor": "@jscutlery/semver:version",
"options": {
"preset": "angular"
"preset": "angular",
"postTargets": ["media:github"],
"baseBranch": "main",
"releaseAs": "patch",
"commitMessageFormat": "build({projectName}): release version ${version}"
}
},
"github": {
"executor": "@jscutlery/semver:github",
"options": {
"tag": "${tag}",
"notes": "${notes}"
}
},
"npm": {
"executor": "ngx-deploy-npm:deploy",
"options": {
"access": "public",
"noBuild": true
}
}
},
Expand Down
6 changes: 5 additions & 1 deletion libs/media/src/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# media
# @octra/media <a href="https://www.npmjs.com/package/@octra/media"><img alt="npm" src="https://img.shields.io/npm/v/@octra/media"></a>

This library offers classes that describes data related to media (e.g. SampleUnit class that describes one point in time of type sample with conversions to other time units) used by [Octra](https://github.com/IPS-LMU/octra).
If you are looking for decoding and playback of audio files see @octra/web-media library.
Expand Down Expand Up @@ -55,3 +55,7 @@ const validator = new OctraMedia.SampleUnit(123123, 22100);
### API

You can find more information about classes and functions of `@octra/media` [here](https://ips-lmu.github.io/octra/modules/_octra_media.html).

### Changelog

[Go to changelog](https://github.com/IPS-LMU/octra/blob/main/libs/media/CHANGELOG.md)
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"publish:lib:assets": "nx npm assets",
"release:lib:json-sets": "nx bundle json-sets && nx run json-sets:version --push",
"publish:lib:json-sets": "nx bundle json-sets && nx npm json-sets",
"release:lib:media": "nx bundle json-sets && nx run media:version --push",
"publish:lib:media": "nx bundle json-sets && nx npm media",
"analyze:octra": "nx build --configuration production --stats-json && webpack-bundle-analyzer dist/apps/octra/stats.json",
"lint": "nx workspace-lint && ng lint",
"affected:apps": "nx affected:apps",
Expand Down

0 comments on commit 1505e80

Please sign in to comment.