Skip to content

Commit

Permalink
switch to npm instead of yarn
Browse files Browse the repository at this point in the history
  • Loading branch information
schehata committed May 21, 2024
1 parent 532af6a commit aea1899
Show file tree
Hide file tree
Showing 7 changed files with 17,893 additions and 10,225 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,27 @@ jobs:
- uses: actions/checkout@v3

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16'
cache: 'yarn'
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: yarn install --immutable --prefer-offline
run: npm install --immutable --prefer-offline

- name: Check types
run: yarn typecheck
run: npm run typecheck
- name: Lint
run: yarn lint
run: npm run lint
- name: Unit tests
run: yarn test:ci
run: npm run test:ci
- name: Build frontend
run: yarn build
run: npm run build

- name: Start grafana docker
run: yarn server -d
run: npm run server -d

- name: Run e2e tests
run: yarn e2e
run: npm run e2e

- name: Stop grafana docker
run: docker-compose down
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/is-compatible.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '16'
cache: 'yarn'
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: yarn install --immutable --prefer-offline
run: npm install --immutable --prefer-offline
- name: Build plugin
run: yarn build
run: npm run build
- name: Compatibility check
run: npx @grafana/levitate@latest is-compatible --path src/module.ts --target @grafana/data,@grafana/ui,@grafana/runtime
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,21 +14,21 @@ jobs:
- uses: actions/checkout@v3

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '16'
cache: 'yarn'
node-version: '20'
cache: 'npm'

- name: Setup Go environment
uses: actions/setup-go@v3
with:
go-version: '1.19'

- name: Install dependencies
run: yarn install --immutable --prefer-offline
run: npm install --immutable --prefer-offline

- name: Build and test frontend
run: yarn build
run: npm run build

- name: Check for backend
id: check-for-backend
Expand Down Expand Up @@ -59,7 +59,7 @@ jobs:
if: ${{ env.GRAFANA_API_KEY == '' }}

- name: Sign plugin
run: yarn sign
run: npm run sign
if: ${{ env.GRAFANA_API_KEY != '' }}

- name: Get plugin metadata
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ Contributions are welcome! Please submit pull requests or open issues on the [Gi
## Building and Running Via Source (for Dev/Local)

```shell
$ yarn install
$ yarn dev
$ npm install
$ npm run dev
```

In another shell run the following
Expand Down
Loading

0 comments on commit aea1899

Please sign in to comment.