diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e12130b11..6173d6204 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,8 +16,10 @@ jobs: with: node-version: '16' registry-url: 'https://registry.npmjs.org' + cache: 'yarn' + - name: Install dependencies - run: yarn + run: yarn install --immutable --prefer-offline - name: Check types run: yarn typecheck - name: Lint @@ -26,11 +28,11 @@ jobs: run: yarn test:ci - name: '@grafana/create-plugin - test an app plugin generation' - run: yarn workspace @grafana/create-plugin run generate-app && (cd ./packages/create-plugin/generated && yarn && yarn build && yarn lint) + run: yarn workspace @grafana/create-plugin run generate-app && (cd ./packages/create-plugin/generated && yarn install --prefer-offline && yarn build && yarn lint) - name: '@grafana/create-plugin - test panel plugin generation' - run: yarn workspace @grafana/create-plugin run generate-panel && (cd ./packages/create-plugin/generated && yarn && yarn build && yarn lint) + run: yarn workspace @grafana/create-plugin run generate-panel && (cd ./packages/create-plugin/generated && yarn install --prefer-offline && yarn build && yarn lint) - name: '@grafana/create-plugin - test datasource plugin generation' - run: yarn workspace @grafana/create-plugin run generate-datasource && (cd ./packages/create-plugin/generated && yarn && yarn build && yarn lint) + run: yarn workspace @grafana/create-plugin run generate-datasource && (cd ./packages/create-plugin/generated && yarn install --prefer-offline && yarn build && yarn lint) - name: '@grafana/sign-plugin - build' run: yarn workspace @grafana/sign-plugin run build @@ -58,17 +60,10 @@ jobs: with: node-version: '16' registry-url: 'https://registry.npmjs.org' - - - name: Cache node modules - uses: actions/cache@v3 - with: - path: node_modules - key: yarn-deps-${{ hashFiles('yarn.lock') }} - restore-keys: | - yarn-deps-${{ hashFiles('yarn.lock') }} + cache: 'yarn' - name: Install dependencies - run: yarn install --immutable + run: yarn install --immutable --prefer-offline - name: Build run: yarn build diff --git a/.gitignore b/.gitignore index c7930836f..b5f5aaa09 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ node_modules # Build output -generated +packages/create-plugin/generated dist # Errors diff --git a/README.md b/README.md index b1e0568bd..2e6d4dd11 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,34 @@ -# Grafana / Plugins tools - -Create and Sign Grafana plugins with ease. - -This is a mono-repo of packages aimed at helping plugin developers extend Grafana in amazing ways! - -| Package Name | Description | Readme | -| ------------- | ------------------------- | ------------------------------------------ | -| Create Plugin | Scaffold a Grafana Plugin | [Link](./packages/create-plugin/README.md) | -| Sign Plugin | Sign a Grafana Plugin | [Link](./packages/sign-plugin/README.md) | +
Create and Sign Grafana plugins with ease.
+