Skip to content

Commit

Permalink
Update license and validate license format
Browse files Browse the repository at this point in the history
  • Loading branch information
kmturley committed Jul 13, 2024
1 parent 6b2deda commit f21f08c
Show file tree
Hide file tree
Showing 5 changed files with 57 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: Release

on:
push:
branches:
- main
tags:
- 'v*'
workflow_dispatch:
schedule:
# https://crontab.guru/weekly
Expand Down
50 changes: 46 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"node": ">=18"
},
"dependencies": {
"@studiorack/core": "^2.0.3",
"@studiorack/core": "^2.0.12",
"chalk": "^5.3.0",
"graphql-request": "^6.1.0",
"js-yaml": "^4.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/ardura/actuate/1.3.1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ author: Ardura
homepage: https://github.com/ardura/Actuate
description: A Subtractive and Additive Synthesizer, Sampler, and Granulizer built in Rust + Nih-Plug
date: 2024-07-12T07:00:00.000Z
license: GPL3
license: gpl-3.0
tags:
- Instrument
- Synth
Expand Down
4 changes: 4 additions & 0 deletions src/sources/github.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as semver from 'semver';
import {
PluginFiles,
PluginLicense,
PluginPack,
PluginVersion,
PluginVersionLocal,
Expand Down Expand Up @@ -310,6 +311,9 @@ export function pluginCompatibility(plugin: PluginVersion) {
error += '- License should be defined\n';
} else if (typeof plugin.license !== 'string' && plugin.license.key === 'other') {
error += '- License should be defined\n';
} else {
const license: PluginLicense = pluginLicense(plugin.license);
if (license.key === 'other') error += '- License should be defined\n';
}
return error.length === 0 ? false : error;
}
Expand Down

0 comments on commit f21f08c

Please sign in to comment.