@grafana/create-plugin 1.3.2-canary.232.f3fd3ea.0 → 1.3.3

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,34 @@
1
+ # v1.3.3 (Fri May 19 2023)
2
+
3
+ #### 🐛 Bug Fix
4
+
5
+ - create-plugin: updates for ci workflow [#242](https://github.com/grafana/plugin-tools/pull/242) ([@briangann](https://github.com/briangann))
6
+
7
+ #### Authors: 1
8
+
9
+ - Brian Gann ([@briangann](https://github.com/briangann))
10
+
11
+ ---
12
+
13
+ # v1.3.2 (Thu May 18 2023)
14
+
15
+ #### 🐛 Bug Fix
16
+
17
+ - Chore: Update dev-dependencies [#232](https://github.com/grafana/plugin-tools/pull/232) ([@leventebalogh](https://github.com/leventebalogh) [@jackw](https://github.com/jackw))
18
+ - Fix fonts not loaded correctly on generated bundles [#251](https://github.com/grafana/plugin-tools/pull/251) ([@academo](https://github.com/academo))
19
+
20
+ #### 📝 Documentation
21
+
22
+ - Create Plugin: Update readme for supported package managers [#244](https://github.com/grafana/plugin-tools/pull/244) ([@jackw](https://github.com/jackw))
23
+
24
+ #### Authors: 3
25
+
26
+ - Esteban Beltran ([@academo](https://github.com/academo))
27
+ - Jack Westbrook ([@jackw](https://github.com/jackw))
28
+ - Levente Balogh ([@leventebalogh](https://github.com/leventebalogh))
29
+
30
+ ---
31
+
1
32
  # v1.3.1 (Mon May 15 2023)
2
33
 
3
34
  #### 🐛 Bug Fix
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grafana/create-plugin",
3
- "version": "1.3.2-canary.232.f3fd3ea.0",
3
+ "version": "1.3.3",
4
4
  "main": "index.js",
5
5
  "repository": {
6
6
  "directory": "packages/create-plugin",
@@ -64,5 +64,5 @@
64
64
  "engines": {
65
65
  "node": ">=16"
66
66
  },
67
- "gitHead": "f3fd3ead8f83d05969a4597a01a84851389c7328"
67
+ "gitHead": "eb963fd92a3bf34d1835ff9b76343e4f61e36144"
68
68
  }
@@ -117,7 +117,7 @@ const config = async (env): Promise<Configuration> => ({
117
117
  type: 'asset/resource',
118
118
  generator: {
119
119
  // Keep publicPath relative for host.com/grafana/ deployments
120
- publicPath: `public/plugins/${pluginJson.id}/fonts`,
120
+ publicPath: `public/plugins/${pluginJson.id}/fonts/`,
121
121
  outputPath: 'fonts/',
122
122
  filename: Boolean(env.production) ? '[hash][ext]' : '[name][ext]',
123
123
  },
@@ -39,15 +39,6 @@ jobs:
39
39
  - name: Build frontend
40
40
  run: {{ packageManagerName }} run build
41
41
 
42
- - name: Start grafana docker
43
- run: docker-compose up -d
44
-
45
- - name: Run e2e tests
46
- run: {{ packageManagerName }} run e2e
47
-
48
- - name: Stop grafana docker
49
- run: docker-compose down
50
-
51
42
  - name: Check for backend
52
43
  id: check-for-backend
53
44
  run: |
@@ -60,7 +51,7 @@ jobs:
60
51
  if: steps.check-for-backend.outputs.has-backend == 'true'
61
52
  uses: actions/setup-go@v3
62
53
  with:
63
- go-version: '1.19'
54
+ go-version: '1.20'
64
55
 
65
56
  - name: Test backend
66
57
  if: steps.check-for-backend.outputs.has-backend == 'true'
@@ -75,3 +66,31 @@ jobs:
75
66
  with:
76
67
  version: latest
77
68
  args: buildAll
69
+
70
+ - name: Check for E2E
71
+ id: check-for-e2e
72
+ run: |
73
+ if [ -d "cypress" ]
74
+ then
75
+ echo "has-e2e=true" >> $GITHUB_OUTPUT
76
+ fi
77
+
78
+ - name: Start grafana docker
79
+ if: steps.check-for-e2e.outputs.has-e2e == 'true'
80
+ run: docker-compose up -d
81
+
82
+ - name: Run e2e tests
83
+ if: steps.check-for-e2e.outputs.has-e2e == 'true'
84
+ run: {{ packageManagerName }} run e2e
85
+
86
+ - name: Stop grafana docker
87
+ if: steps.check-for-e2e.outputs.has-e2e == 'true'
88
+ run: docker-compose down
89
+
90
+ - name: Archive E2E output
91
+ uses: actions/upload-artifact@v3
92
+ if: steps.check-for-e2e.outputs.has-e2e == 'true' && steps.run-e2e-tests.outcome != 'success'
93
+ with:
94
+ name: cypress-videos
95
+ path: cypress/videos
96
+ retention-days: 5