From dff7c803b4245eff897002ab69c7757ac4dca14f Mon Sep 17 00:00:00 2001 From: Nicholas Date: Tue, 26 Mar 2024 22:13:19 +0000 Subject: [PATCH] chore: changing workflows to pnpm --- .github/workflows/coverage.yml | 10 +++++++--- .github/workflows/docs.yml | 10 +++++++--- .github/workflows/publish.yml | 11 +++++++++-- .github/workflows/test.yml | 10 +++++++--- .gitignore | 2 ++ README.md | 2 +- renovate.json | 4 +--- 7 files changed, 34 insertions(+), 15 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 485e0f6..ab6465d 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -19,21 +19,25 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v3 + with: + version: 8 + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - cache: 'npm' + cache: 'pnpm' - name: NPM Audit run: npx audit-ci - name: Install Node Modules - run: npm ci + run: pnpm install --frozen-lockfile - name: Report Coverage uses: paambaati/codeclimate-action@v5.0.0 env: CC_TEST_REPORTER_ID: 760097cb88b4c685dce427cf94a8e12a5f082774d06b4f4f5daef839ffc07821 with: - coverageCommand: npm run lcov + coverageCommand: pnpm run lcov diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 723a94e..26a11c4 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -31,20 +31,24 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - uses: pnpm/action-setup@v3 + with: + version: 8 + - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: 18.x - cache: 'npm' + cache: 'pnpm' - name: NPM Audit run: npx audit-ci - name: Install Node Modules - run: npm ci + run: pnpm install --frozen-lockfile - name: Build Docs - run: npm run generate-docs + run: pnpm run generate-docs - name: Setup Pages uses: actions/configure-pages@v3 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bbd7c29..bd62d1a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,12 +11,19 @@ jobs: id-token: write steps: - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v3 + with: + version: 8 + - uses: actions/setup-node@v4 with: node-version: '20.x' - cache: 'npm' + cache: 'pnpm' registry-url: 'https://registry.npmjs.org' - - run: npm ci + + - run: pnpm install --frozen-lockfile + - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 219cd48..786ef5c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,20 +19,24 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v3 + with: + version: 8 + - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - cache: 'npm' + cache: 'pnpm' - name: NPM Audit run: npx audit-ci - name: Install Node Modules - run: npm ci + run: pnpm install --frozen-lockfile - name: Run Tests and Linting - run: npm run test + run: pnpm run test - uses: actions/upload-artifact@v3 with: diff --git a/.gitignore b/.gitignore index c6bba59..8775503 100644 --- a/.gitignore +++ b/.gitignore @@ -128,3 +128,5 @@ dist .yarn/build-state.yml .yarn/install-state.gz .pnp.* + +public \ No newline at end of file diff --git a/README.md b/README.md index aac33cd..6fad104 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # cloudflare-queue-producer -[![NPM downloads](https://img.shields.io/npm/dm/cloudflare-queue-producer.svg?style=flat)](https://npmjs.org/package/cloudflare-queue-producer) +[![NPM downloads](https://img.shields.io/npm/dm/@bbc/cloudflare-queue-producer.svg?style=flat)](https://npmjs.org/package/@bbc/cloudflare-queue-producer) [![Build Status](https://github.com/bbc/cloudflare-queue-producer/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/bbc/cloudflare-queue-producer/actions/workflows/test.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/16ec3f59e73bc898b7ff/maintainability)](https://codeclimate.com/github/bbc/cloudflare-queue-producer/maintainability) [![Test Coverage](https://api.codeclimate.com/v1/badges/16ec3f59e73bc898b7ff/test_coverage)](https://codeclimate.com/github/bbc/cloudflare-queue-producer/test_coverage) diff --git a/renovate.json b/renovate.json index 5db72dd..22a9943 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,4 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:recommended" - ] + "extends": ["config:recommended"] }