@grafana/create-plugin 2.5.1 → 2.6.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,24 @@
1
+ # v2.6.0 (Tue Nov 07 2023)
2
+
3
+ :tada: This release contains work from a new contributor! :tada:
4
+
5
+ Thank you, Joan López de la Franca Beltran ([@joanlopez](https://github.com/joanlopez)), for all your work!
6
+
7
+ #### 🚀 Enhancement
8
+
9
+ - update to use sha1sum and minor workflow updates [#503](https://github.com/grafana/plugin-tools/pull/503) ([@briangann](https://github.com/briangann))
10
+
11
+ #### 🐛 Bug Fix
12
+
13
+ - Create Plugin: Replace 'master' with 'main' on ref [#507](https://github.com/grafana/plugin-tools/pull/507) ([@joanlopez](https://github.com/joanlopez))
14
+
15
+ #### Authors: 2
16
+
17
+ - Brian Gann ([@briangann](https://github.com/briangann))
18
+ - Joan López de la Franca Beltran ([@joanlopez](https://github.com/joanlopez))
19
+
20
+ ---
21
+
1
22
  # v2.5.1 (Thu Nov 02 2023)
2
23
 
3
24
  #### 🐛 Bug Fix
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://raw.githubusercontent.com/grafana/grafana/master/docs/sources/developers/plugins/plugin.schema.json",
2
+ "$schema": "https://raw.githubusercontent.com/grafana/grafana/main/docs/sources/developers/plugins/plugin.schema.json",
3
3
  "type": "app",
4
4
  "name": "{{ titleCase pluginName }}",
5
5
  "id": "{{ normalize_id pluginName orgName 'app' }}",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/create-plugin",
3
- "version": "2.5.1",
3
+ "version": "2.6.0",
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": "d11001ecf8c1408a2a7e01148d9c77464b300aae"
69
+ "gitHead": "ffb46743a4f8a37fb1cbb4755fa2bad7feae4da5"
70
70
  }
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://raw.githubusercontent.com/grafana/grafana/master/docs/sources/developers/plugins/plugin.schema.json",
2
+ "$schema": "https://raw.githubusercontent.com/grafana/grafana/main/docs/sources/developers/plugins/plugin.schema.json",
3
3
  "type": "app",
4
4
  "name": "{{ titleCase pluginName }}",
5
5
  "id": "{{ normalize_id pluginName orgName 'app' }}",{{#if hasBackend}}
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://raw.githubusercontent.com/grafana/grafana/master/docs/sources/developers/plugins/plugin.schema.json",
2
+ "$schema": "https://raw.githubusercontent.com/grafana/grafana/main/docs/sources/developers/plugins/plugin.schema.json",
3
3
  "type": "datasource",
4
4
  "name": "{{ titleCase pluginName }}",
5
5
  "id": "{{ normalize_id pluginName orgName 'datasource' }}",
@@ -51,7 +51,7 @@ jobs:
51
51
  if: steps.check-for-backend.outputs.has-backend == 'true'
52
52
  uses: actions/setup-go@v3
53
53
  with:
54
- go-version: '1.20'
54
+ go-version: '1.21'
55
55
 
56
56
  - name: Test backend
57
57
  if: steps.check-for-backend.outputs.has-backend == 'true'
@@ -29,7 +29,7 @@ jobs:
29
29
  - name: Setup Go environment
30
30
  uses: actions/setup-go@v3
31
31
  with:
32
- go-version: '1.19'
32
+ go-version: '1.21'
33
33
 
34
34
  - name: Install dependencies
35
35
  run: {{ packageManagerInstallCmd }}
@@ -78,13 +78,13 @@ jobs:
78
78
  export GRAFANA_PLUGIN_VERSION=$(cat dist/plugin.json | jq -r .info.version)
79
79
  export GRAFANA_PLUGIN_TYPE=$(cat dist/plugin.json | jq -r .type)
80
80
  export GRAFANA_PLUGIN_ARTIFACT=${GRAFANA_PLUGIN_ID}-${GRAFANA_PLUGIN_VERSION}.zip
81
- export GRAFANA_PLUGIN_ARTIFACT_CHECKSUM=${GRAFANA_PLUGIN_ARTIFACT}.md5
81
+ export GRAFANA_PLUGIN_ARTIFACT_SHA1SUM=${GRAFANA_PLUGIN_ARTIFACT}.sha1
82
82
 
83
83
  echo "plugin-id=${GRAFANA_PLUGIN_ID}" >> $GITHUB_OUTPUT
84
84
  echo "plugin-version=${GRAFANA_PLUGIN_VERSION}" >> $GITHUB_OUTPUT
85
85
  echo "plugin-type=${GRAFANA_PLUGIN_TYPE}" >> $GITHUB_OUTPUT
86
86
  echo "archive=${GRAFANA_PLUGIN_ARTIFACT}" >> $GITHUB_OUTPUT
87
- echo "archive-checksum=${GRAFANA_PLUGIN_ARTIFACT_CHECKSUM}" >> $GITHUB_OUTPUT
87
+ echo "archive-sha1sum=${GRAFANA_PLUGIN_ARTIFACT_SHA1SUM}" >> $GITHUB_OUTPUT
88
88
 
89
89
  echo "github-tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
90
90
 
@@ -102,8 +102,7 @@ jobs:
102
102
  run: |
103
103
  mv dist $\{{ steps.metadata.outputs.plugin-id }}
104
104
  zip $\{{ steps.metadata.outputs.archive }} $\{{ steps.metadata.outputs.plugin-id }} -r
105
- md5sum $\{{ steps.metadata.outputs.archive }} > $\{{ steps.metadata.outputs.archive-checksum }}
106
- echo "checksum=$(cat ./$\{{ steps.metadata.outputs.archive-checksum }} | cut -d' ' -f1)" >> $GITHUB_OUTPUT
105
+ sha1sum $\{{ steps.metadata.outputs.archive }} | cut -f1 -d' ' > $\{{ steps.metadata.outputs.archive-sha1sum }}
107
106
 
108
107
  - name: Validate plugin
109
108
  run: |
@@ -120,7 +119,7 @@ jobs:
120
119
  generate_release_notes: true
121
120
  files: |
122
121
  ./$\{{ steps.metadata.outputs.archive }}
123
- ./$\{{ steps.metadata.outputs.archive-checksum }}
122
+ ./$\{{ steps.metadata.outputs.archive-sha1sum }}
124
123
  body: |
125
124
  **This Github draft release has been created for your plugin.**
126
125
 
@@ -134,6 +133,6 @@ jobs:
134
133
  - Click the **Submit Plugin** button
135
134
  - Fill in the Plugin Submission form:
136
135
  - Paste this [.zip asset link](https://github.com/$\{{ github.repository }}/releases/download/v$\{{ steps.metadata.outputs.plugin-version }}/$\{{ steps.metadata.outputs.archive }}) in the Plugin URL field
137
- - Paste this [.zip.md5 link](https://github.com/$\{{ github.repository }}/releases/download/v$\{{ steps.metadata.outputs.plugin-version }}/$\{{ steps.metadata.outputs.archive-checksum }}) in the MD5 field
136
+ - Paste this [.zip.sha1 link](https://github.com/${{ github.repository }}/releases/download/v${{ steps.metadata.outputs.plugin-version }}/${{ steps.metadata.outputs.archive-sha1sum }}) in the SHA1 field
138
137
 
139
138
  Once done please remove these instructions and publish this release.
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://raw.githubusercontent.com/grafana/grafana/master/docs/sources/developers/plugins/plugin.schema.json",
2
+ "$schema": "https://raw.githubusercontent.com/grafana/grafana/main/docs/sources/developers/plugins/plugin.schema.json",
3
3
  "type": "panel",
4
4
  "name": "{{ titleCase pluginName }}",
5
5
  "id": "{{ normalize_id pluginName orgName 'panel' }}",
@@ -1,5 +1,5 @@
1
1
  {
2
- "$schema": "https://raw.githubusercontent.com/grafana/grafana/master/docs/sources/developers/plugins/plugin.schema.json",
2
+ "$schema": "https://raw.githubusercontent.com/grafana/grafana/main/docs/sources/developers/plugins/plugin.schema.json",
3
3
  "type": "app",
4
4
  "name": "{{ titleCase pluginName }}",
5
5
  "id": "{{ normalize_id pluginName orgName 'app' }}",{{#if hasBackend}}