Skip to content

Commit

Permalink
add pnpm setup action
Browse files Browse the repository at this point in the history
  • Loading branch information
shamilovtim committed Feb 21, 2024
1 parent de5702c commit 60c96a0
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/alpha-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
node-version: 18
registry-url: https://registry.npmjs.org/
cache: "pnpm"

- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d
with:
version: 8

# Note - this is not required but it gives a clean failure prior to attempting a release if
# the GH workflow runner is not authenticated with NPMjs.com
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/docs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ jobs:
registry-url: https://registry.npmjs.org/
cache: "pnpm"

- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d
with:
version: 8

- name: Install dependencies
run: pnpm install --frozen-lockfile

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/docs-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ jobs:
registry-url: https://registry.npmjs.org/
cache: 'pnpm'

- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d
with:
version: 8

- name: Install dependencies
run: |
npm install --frozen-lockfile
pnpm install --frozen-lockfile
- name: Build all workspace packages
run: pnpm --recursive --stream build
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ jobs:
registry-url: https://registry.npmjs.org/
cache: "pnpm"

- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d
with:
version: 8

- name: Install semver utility
run: pnpm install -g [email protected]

Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/tests-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ jobs:
node-version: 18
cache: "pnpm"

- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d
with:
version: 8

- name: Report known vulnerabilities
run: pnpm audit

Expand All @@ -42,6 +46,10 @@ jobs:
registry-url: https://registry.npmjs.org/
cache: "pnpm"

- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d
with:
version: 8

- name: Install dependencies
run: pnpm install --frozen-lockfile

Expand Down Expand Up @@ -125,6 +133,10 @@ jobs:
registry-url: https://registry.npmjs.org/
cache: "pnpm"

- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d
with:
version: 8

- name: Install dependencies
run: pnpm install --frozen-lockfile

Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Build and Test cycles are run on every commit to every branch using [GitHub Acti
| Requirement | Tested Version | Installation Instructions |
| ----------- | -------------- | ---------------------------------------------------------------------------------------------- |
| Node.js | 18.16.0 | [Introduction to Node.js](https://nodejs.dev/en/learn/) |
| PNPM | 8.10.5 | [PNPM Package Manager](https://pnpm.io/installation) |
| PNPM | 8.15.3 | [PNPM Package Manager](https://pnpm.io/installation) |

### TypeScript

Expand Down

0 comments on commit 60c96a0

Please sign in to comment.