Skip to content

Commit d72f1d0

Browse files
committed
update the validator to including signing
1 parent f8cbd8c commit d72f1d0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

validate.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,22 @@ rm -rf dist
88
npm run build
99
mage -v
1010

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+
1117
cleanup () {
1218
rm -rf ${PLUGIN_ID} ${PLUGIN_ID}.zip
1319
}
1420
trap cleanup EXIT
1521

16-
1722
echo "Copying and zipping"
1823
cleanup # in case stuff was left around from last time
1924
cp -r dist ${PLUGIN_ID}
2025
zip -qr ${PLUGIN_ID}.zip ${PLUGIN_ID}
2126

22-
echo "Invoking the plugin validator"
27+
echo "Invoking the plugin validator (no output, no warnings, no errors is a good thing)"
2328
npx @grafana/plugin-validator@latest -sourceCodeUri file://. ${PLUGIN_ID}.zip
29+
echo "Done"

0 commit comments

Comments
 (0)