@grafana/sign-plugin 1.1.0-canary.331.87aac64.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ # v1.1.0 (Mon Aug 07 2023)
2
+
3
+ :tada: This release contains work from a new contributor! :tada:
4
+
5
+ Thank you, Yulia Shanyrova ([@Ukochka](https://github.com/Ukochka)), for all your work!
6
+
7
+ #### 🚀 Enhancement
8
+
9
+ - sign-plugin: GRAFANA_ACESS_POLICY_TOKEN has been added instead of GRAFANA_API_KEY [#331](https://github.com/grafana/plugin-tools/pull/331) ([@Ukochka](https://github.com/Ukochka))
10
+
11
+ #### Authors: 1
12
+
13
+ - Yulia Shanyrova ([@Ukochka](https://github.com/Ukochka))
14
+
15
+ ---
16
+
1
17
  # v1.0.3 (Mon Jul 10 2023)
2
18
 
3
19
  #### 🐛 Bug Fix
@@ -219,7 +219,7 @@ function signManifest(manifest) {
219
219
  GRAFANA_API_KEY = process.env.GRAFANA_API_KEY;
220
220
  GRAFANA_ACCESS_POLICY_TOKEN = process.env.GRAFANA_ACCESS_POLICY_TOKEN;
221
221
  if (!GRAFANA_ACCESS_POLICY_TOKEN && !GRAFANA_API_KEY) {
222
- throw new Error('You must create a GRAFANA_ACCESS_POLICY_TOKEN env variable to sign plugins. Please see: https://grafana.com/docs/grafana/latest/developers/plugins/sign-a-plugin/#generate-an-api-key for instructions.');
222
+ throw new Error('You must create a GRAFANA_ACCESS_POLICY_TOKEN env variable to sign plugins. Please see: https://grafana.com/docs/grafana/latest/developers/plugins/sign-a-plugin/#generate-a-token for instructions.');
223
223
  }
224
224
  if (GRAFANA_API_KEY) {
225
225
  console.warn("\u001B[33m%s\u001B[0m", 'The usage of GRAFANA_API_KEY is deprecated, please consider using GRAFANA_ACCESS_POLICY_TOKEN instead. For more info visit https://grafana.com/docs/grafana/latest/developers/plugins/publish-a-plugin/sign-a-plugin');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/sign-plugin",
3
- "version": "1.1.0-canary.331.87aac64.0",
3
+ "version": "1.1.0",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "directory": "packages/sign-plugin",
@@ -40,5 +40,5 @@
40
40
  "engines": {
41
41
  "node": ">=16"
42
42
  },
43
- "gitHead": "87aac64e347e69fae5963f66659a6b8fb1893b4f"
43
+ "gitHead": "85bae17e8637567be338933541d02d811d314251"
44
44
  }
@@ -80,7 +80,7 @@ export async function signManifest(manifest: ManifestInfo): Promise<string> {
80
80
 
81
81
  if(!GRAFANA_ACCESS_POLICY_TOKEN && !GRAFANA_API_KEY) {
82
82
  throw new Error(
83
- 'You must create a GRAFANA_ACCESS_POLICY_TOKEN env variable to sign plugins. Please see: https://grafana.com/docs/grafana/latest/developers/plugins/sign-a-plugin/#generate-an-api-key for instructions.'
83
+ 'You must create a GRAFANA_ACCESS_POLICY_TOKEN env variable to sign plugins. Please see: https://grafana.com/docs/grafana/latest/developers/plugins/sign-a-plugin/#generate-a-token for instructions.'
84
84
  );
85
85
  }
86
86
  if (GRAFANA_API_KEY) {