@grafana/create-plugin 3.1.2 → 3.1.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,15 @@
|
|
|
1
|
+
# v3.1.3 (Mon Jan 29 2024)
|
|
2
|
+
|
|
3
|
+
#### 🐛 Bug Fix
|
|
4
|
+
|
|
5
|
+
- create-plugin: adds archive option for CI workflow [#682](https://github.com/grafana/plugin-tools/pull/682) ([@briangann](https://github.com/briangann))
|
|
6
|
+
|
|
7
|
+
#### Authors: 1
|
|
8
|
+
|
|
9
|
+
- Brian Gann ([@briangann](https://github.com/briangann))
|
|
10
|
+
|
|
11
|
+
---
|
|
12
|
+
|
|
1
13
|
# v3.1.2 (Thu Jan 25 2024)
|
|
2
14
|
|
|
3
15
|
#### 🐛 Bug Fix
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grafana/create-plugin",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.3",
|
|
4
4
|
"repository": {
|
|
5
5
|
"directory": "packages/create-plugin",
|
|
6
6
|
"url": "https://github.com/grafana/plugin-tools"
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"engines": {
|
|
86
86
|
"node": ">=20"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "1171e3a60654f1c2d64d5393fdd62486b4e8b4f1"
|
|
89
89
|
}
|
|
@@ -14,6 +14,8 @@ on:
|
|
|
14
14
|
jobs:
|
|
15
15
|
build:
|
|
16
16
|
runs-on: ubuntu-latest
|
|
17
|
+
env:
|
|
18
|
+
GRAFANA_ACCESS_POLICY_TOKEN: $\{{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }}
|
|
17
19
|
steps:
|
|
18
20
|
- uses: actions/checkout@v3
|
|
19
21
|
{{#if_eq packageManagerName "pnpm"}}
|
|
@@ -94,3 +96,33 @@ jobs:
|
|
|
94
96
|
name: cypress-videos
|
|
95
97
|
path: cypress/videos
|
|
96
98
|
retention-days: 5
|
|
99
|
+
|
|
100
|
+
- name: Sign plugin
|
|
101
|
+
run: {{ packageManagerName }} run sign
|
|
102
|
+
if: $\{{ env.GRAFANA_ACCESS_POLICY_TOKEN != '' }}
|
|
103
|
+
|
|
104
|
+
- name: Get plugin metadata
|
|
105
|
+
id: metadata
|
|
106
|
+
run: |
|
|
107
|
+
sudo apt-get install jq
|
|
108
|
+
|
|
109
|
+
export GRAFANA_PLUGIN_ID=$(cat dist/plugin.json | jq -r .id)
|
|
110
|
+
export GRAFANA_PLUGIN_VERSION=$(cat dist/plugin.json | jq -r .info.version)
|
|
111
|
+
export GRAFANA_PLUGIN_ARTIFACT=${GRAFANA_PLUGIN_ID}-${GRAFANA_PLUGIN_VERSION}.zip
|
|
112
|
+
|
|
113
|
+
echo "plugin-id=${GRAFANA_PLUGIN_ID}" >> $GITHUB_OUTPUT
|
|
114
|
+
echo "plugin-version=${GRAFANA_PLUGIN_VERSION}" >> $GITHUB_OUTPUT
|
|
115
|
+
echo "archive=${GRAFANA_PLUGIN_ARTIFACT}" >> $GITHUB_OUTPUT
|
|
116
|
+
|
|
117
|
+
- name: Package plugin
|
|
118
|
+
id: package-plugin
|
|
119
|
+
run: |
|
|
120
|
+
mv dist $\{{ steps.metadata.outputs.plugin-id }}
|
|
121
|
+
zip $\{{ steps.metadata.outputs.archive }} $\{{ steps.metadata.outputs.plugin-id }} -r
|
|
122
|
+
|
|
123
|
+
- name: Archive Build
|
|
124
|
+
uses: actions/upload-artifact@v3
|
|
125
|
+
with:
|
|
126
|
+
name: $\{{ steps.metadata.outputs.plugin-id }}-$\{{ steps.metadata.outputs.plugin-version }}
|
|
127
|
+
path: $\{{ steps.metadata.outputs.plugin-id }}
|
|
128
|
+
retention-days: 5
|