@grafana/create-plugin 2.10.2-canary.624.de8cef4.0 → 2.10.2
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,15 @@
|
|
|
1
|
+
# v2.10.2 (Fri Jan 05 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- Github workflows: Add correct permissions to the release workflow [#642](https://github.com/grafana/plugin-tools/pull/642) ([@leventebalogh](https://github.com/leventebalogh))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Levente Balogh ([@leventebalogh](https://github.com/leventebalogh))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v2.10.1 (Thu Dec 14 2023)
|
|
2
14
|
|
|
3
15
|
:tada: This release contains work from a new contributor! :tada:
|
|
@@ -42,9 +42,8 @@ function getTemplateFiles(pluginType, filter) {
|
|
|
42
42
|
var templateFiles = (0, utils_files_1.filterOutCommonFiles)(__spreadArray(__spreadArray([], commonFiles, true), pluginTypeSpecificFiles, true), pluginType);
|
|
43
43
|
if (filter) {
|
|
44
44
|
return templateFiles.filter(function (file) {
|
|
45
|
-
var
|
|
46
|
-
|
|
47
|
-
return (0, utils_files_1.isFileStartingWith)(fileProjectRelativePath, filter) || (0, utils_files_1.isFileStartingWith)(exportedName, filter);
|
|
45
|
+
var projectRelativePath = getProjectRelativeTemplatePath(file, pluginType);
|
|
46
|
+
return (0, utils_files_1.isFileStartingWith)(projectRelativePath, filter);
|
|
48
47
|
});
|
|
49
48
|
}
|
|
50
49
|
return templateFiles;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/create-plugin",
|
|
3
|
-
"version": "2.10.2
|
|
3
|
+
"version": "2.10.2",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"directory": "packages/create-plugin",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"engines": {
|
|
67
67
|
"node": ">=20"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "c603d0132d6511e499d416a77d60338062ffec38"
|
|
70
70
|
}
|
|
@@ -23,13 +23,9 @@ export function getTemplateFiles(pluginType: string, filter?: string | string[])
|
|
|
23
23
|
|
|
24
24
|
if (filter) {
|
|
25
25
|
return templateFiles.filter((file) => {
|
|
26
|
-
const
|
|
27
|
-
const exportedName = path.join(path.dirname(fileProjectRelativePath), getExportFileName(fileProjectRelativePath));
|
|
26
|
+
const projectRelativePath = getProjectRelativeTemplatePath(file, pluginType);
|
|
28
27
|
|
|
29
|
-
|
|
30
|
-
// their template version e.g. _eslint instead of .eslint.
|
|
31
|
-
// We need to check the filter with both of them to prevent skipping them in an update or migration
|
|
32
|
-
return isFileStartingWith(fileProjectRelativePath, filter) || isFileStartingWith(exportedName, filter);
|
|
28
|
+
return isFileStartingWith(projectRelativePath, filter);
|
|
33
29
|
});
|
|
34
30
|
}
|
|
35
31
|
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
{{!-- /* 🚨 The `$\{{ }}` Github workflow expressions need to be escaped so they are not being interpreted by Handlebars. (this comment is going to be removed after scaffolding) 🚨 */ --}}
|
|
2
|
+
# This GitHub Action automates the process of building Grafana plugins.
|
|
3
|
+
# (For more information, see https://github.com/grafana/plugin-actions/blob/main/build-plugin/README.md)
|
|
2
4
|
name: Release
|
|
3
5
|
|
|
4
6
|
on:
|
|
@@ -6,16 +8,19 @@ on:
|
|
|
6
8
|
tags:
|
|
7
9
|
- 'v*' # Run workflow on version tags, e.g. v1.0.0.
|
|
8
10
|
|
|
11
|
+
permissions:
|
|
12
|
+
contents: write
|
|
13
|
+
|
|
9
14
|
jobs:
|
|
10
15
|
release:
|
|
11
16
|
runs-on: ubuntu-latest
|
|
12
17
|
steps:
|
|
13
18
|
- uses: actions/checkout@v3
|
|
14
19
|
- uses: grafana/plugin-actions/build-plugin@release
|
|
15
|
-
#
|
|
20
|
+
# Uncomment to enable plugin signing
|
|
21
|
+
# (For more info on how to generate the access policy token see https://grafana.com/developers/plugin-tools/publish-a-plugin/sign-a-plugin#generate-an-access-policy-token)
|
|
16
22
|
#with:
|
|
17
|
-
#
|
|
18
|
-
# save the value in your repository secrets
|
|
23
|
+
# Make sure to save the token in your repository secrets
|
|
19
24
|
#policy_token: ${{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }}
|
|
20
|
-
#
|
|
25
|
+
# Usage of GRAFANA_API_KEY is deprecated, prefer `policy_token` option above
|
|
21
26
|
#grafana_token: ${{ secrets.GRAFANA_API_KEY }}
|