Skip to content

Commit

Permalink
chore: changing workflows to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasgriffintn committed Mar 26, 2024
1 parent a136cc4 commit dff7c80
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 15 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
env:
CC_TEST_REPORTER_ID: 760097cb88b4c685dce427cf94a8e12a5f082774d06b4f4f5daef839ffc07821
with:
coverageCommand: npm run lcov
coverageCommand: pnpm run lcov
10 changes: 7 additions & 3 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -128,3 +128,5 @@ dist
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

public
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
4 changes: 1 addition & 3 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
"extends": ["config:recommended"]
}

0 comments on commit dff7c80

Please sign in to comment.