Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
riclolsen committed Mar 9, 2024
2 parents cf565e0 + 1ff5b6b commit f535a93
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/webpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
environment: PluginBuild

strategy:
matrix:
Expand All @@ -23,9 +24,18 @@ jobs:
node-version: ${{ matrix.node-version }}

- name: Build
env:
PLUGIN_ID: ${{ vars.PLUGIN_ID }}
NODE_OPTIONS: ${{ vars.NODE_OPTIONS }}
GRAFANA_ACCESS_POLICY_TOKEN: ${{ secrets.GRAFANA_ACCESS_POLICY_TOKEN }}
run: |
export NODE_OPTIONS=--openssl-legacy-provider
npm install -g corepack
corepack enable
corepack prepare yarn@stable --activate
yarn install
yarn
yarn build
npx @grafana/sign-plugin@latest
cp -r dist "${PLUGIN_ID}"
zip -qr "${PLUGIN_ID}.zip" "${PLUGIN_ID}"
npx @grafana/plugin-validator@latest -sourceCodeUri file://. "${PLUGIN_ID}.zip"
sha1sum ${PLUGIN_ID}.zip

0 comments on commit f535a93

Please sign in to comment.