File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,22 @@ rm -rf dist
8
8
npm run build
9
9
mage -v
10
10
11
+ if [ ! -z " $GRAFANA_ACCESS_POLICY_TOKEN " ]; then
12
+ npx @grafana/sign-plugin@latest
13
+ else
14
+ echo " Skipping signing the plugin, set GRAFANA_ACCESS_POLICY_TOKEN to include signing"
15
+ fi
16
+
11
17
cleanup () {
12
18
rm -rf ${PLUGIN_ID} ${PLUGIN_ID} .zip
13
19
}
14
20
trap cleanup EXIT
15
21
16
-
17
22
echo " Copying and zipping"
18
23
cleanup # in case stuff was left around from last time
19
24
cp -r dist ${PLUGIN_ID}
20
25
zip -qr ${PLUGIN_ID} .zip ${PLUGIN_ID}
21
26
22
- echo " Invoking the plugin validator"
27
+ echo " Invoking the plugin validator (no output, no warnings, no errors is a good thing) "
23
28
npx @grafana/plugin-validator@latest -sourceCodeUri file://. ${PLUGIN_ID} .zip
29
+ echo " Done"
You can’t perform that action at this time.
0 commit comments