@grafana/create-plugin 3.3.0 → 3.4.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
+ # v3.4.0 (Fri Feb 02 2024)
2
+
3
+ :tada: This release contains work from a new contributor! :tada:
4
+
5
+ Thank you, Nicolas Ventura ([@6nv](https://github.com/6nv)), for all your work!
6
+
7
+ #### 🚀 Enhancement
8
+
9
+ - Update create-plugin workflow action versions [#711](https://github.com/grafana/plugin-tools/pull/711) ([@6nv](https://github.com/6nv))
10
+
11
+ #### 🐛 Bug Fix
12
+
13
+ - Fix broken livereload injection when using Grafana 10.2.3 [#696](https://github.com/grafana/plugin-tools/pull/696) ([@samjewell](https://github.com/samjewell))
14
+
15
+ #### Authors: 2
16
+
17
+ - Nicolas Ventura ([@6nv](https://github.com/6nv))
18
+ - Sam Jewell ([@samjewell](https://github.com/samjewell))
19
+
20
+ ---
21
+
1
22
  # v3.3.0 (Fri Feb 02 2024)
2
23
 
3
24
  #### 🚀 Enhancement
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/create-plugin",
3
- "version": "3.3.0",
3
+ "version": "3.4.0",
4
4
  "repository": {
5
5
  "directory": "packages/create-plugin",
6
6
  "url": "https://github.com/grafana/plugin-tools"
@@ -86,5 +86,5 @@
86
86
  "engines": {
87
87
  "node": ">=20"
88
88
  },
89
- "gitHead": "46c7ec2fd92c02ad7089085a330f63fc61d27d89"
89
+ "gitHead": "750878c5c6952236d376adfec30c35510555eb72"
90
90
  }
@@ -13,4 +13,4 @@ ENV GF_DEFAULT_APP_MODE "development"
13
13
 
14
14
  # Inject livereload script into grafana index.html
15
15
  USER root
16
- RUN sed -i 's/<\/body><\/html>/<script src=\"http:\/\/localhost:35729\/livereload.js\"><\/script><\/body><\/html>/g' /usr/share/grafana/public/views/index.html
16
+ RUN sed -i 's|</body>|<script src="http://localhost:35729/livereload.js"></script></body>|g' /usr/share/grafana/public/views/index.html
@@ -17,14 +17,14 @@ jobs:
17
17
  env:
18
18
  GRAFANA_ACCESS_POLICY_TOKEN: $\{{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }}
19
19
  steps:
20
- - uses: actions/checkout@v3
20
+ - uses: actions/checkout@v4
21
21
  {{#if_eq packageManagerName "pnpm"}}
22
22
  # pnpm action uses the packageManager field in package.json to
23
23
  # understand which version to install.
24
24
  - uses: pnpm/action-setup@v2
25
25
  {{/if_eq}}
26
26
  - name: Setup Node.js environment
27
- uses: actions/setup-node@v3
27
+ uses: actions/setup-node@v4
28
28
  with:
29
29
  node-version: '20'
30
30
  cache: '{{ packageManagerName }}'
@@ -51,20 +51,20 @@ jobs:
51
51
 
52
52
  - name: Setup Go environment
53
53
  if: steps.check-for-backend.outputs.has-backend == 'true'
54
- uses: actions/setup-go@v3
54
+ uses: actions/setup-go@v5
55
55
  with:
56
56
  go-version: '1.21'
57
57
 
58
58
  - name: Test backend
59
59
  if: steps.check-for-backend.outputs.has-backend == 'true'
60
- uses: magefile/mage-action@v2
60
+ uses: magefile/mage-action@v3
61
61
  with:
62
62
  version: latest
63
63
  args: coverage
64
64
 
65
65
  - name: Build backend
66
66
  if: steps.check-for-backend.outputs.has-backend == 'true'
67
- uses: magefile/mage-action@v2
67
+ uses: magefile/mage-action@v3
68
68
  with:
69
69
  version: latest
70
70
  args: buildAll
@@ -90,7 +90,7 @@ jobs:
90
90
  run: docker-compose down
91
91
 
92
92
  - name: Archive E2E output
93
- uses: actions/upload-artifact@v3
93
+ uses: actions/upload-artifact@v4
94
94
  if: steps.check-for-e2e.outputs.has-e2e == 'true' && steps.run-e2e-tests.outcome != 'success'
95
95
  with:
96
96
  name: cypress-videos
@@ -121,7 +121,7 @@ jobs:
121
121
  zip $\{{ steps.metadata.outputs.archive }} $\{{ steps.metadata.outputs.plugin-id }} -r
122
122
 
123
123
  - name: Archive Build
124
- uses: actions/upload-artifact@v3
124
+ uses: actions/upload-artifact@v4
125
125
  with:
126
126
  name: $\{{ steps.metadata.outputs.plugin-id }}-$\{{ steps.metadata.outputs.plugin-version }}
127
127
  path: $\{{ steps.metadata.outputs.plugin-id }}
@@ -15,7 +15,7 @@ jobs:
15
15
  release:
16
16
  runs-on: ubuntu-latest
17
17
  steps:
18
- - uses: actions/checkout@v3
18
+ - uses: actions/checkout@v4
19
19
  - uses: grafana/plugin-actions/build-plugin@release
20
20
  # Uncomment to enable plugin signing
21
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)
@@ -5,14 +5,14 @@ jobs:
5
5
  compatibilitycheck:
6
6
  runs-on: ubuntu-latest
7
7
  steps:
8
- - uses: actions/checkout@v3
8
+ - uses: actions/checkout@v4
9
9
  {{#if_eq packageManagerName "pnpm"}}
10
10
  # pnpm action uses the packageManager field in package.json to
11
11
  # understand which version to install.
12
12
  - uses: pnpm/action-setup@v2
13
13
  {{/if_eq}}
14
14
  - name: Setup Node.js environment
15
- uses: actions/setup-node@v3
15
+ uses: actions/setup-node@v4
16
16
  with:
17
17
  node-version: '20'
18
18
  cache: '{{ packageManagerName }}'