Skip to content

Commit

Permalink
test workflow for pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
gmichelo committed Feb 1, 2024
1 parent c1636b0 commit 01efbc8
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/pnpm.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Test pnpm caching
on:
push:
branches:
- main
pull_request:
branches:
- "*"
workflow_dispatch:

permissions:
contents: read

jobs:
yarn:
runs-on:
- namespace-profile-e2e-small
steps:
- uses: actions/checkout@v3
- name: Install pnpm
uses: pnpm/action-setup@v2
- uses: actions/checkout@v3
with:
repository: namespace-integration-demos/cache-yarn-workspaces
path: demo
- name: Setup pnpm cache
uses: ./ # Uses an action in the root directory
with:
cache: pnpm
path: |
./node_modules/.cache
- run: pnpm install
working-directory: ./demo/fullstack
- run: pnpm build
working-directory: ./demo/fullstack
- name: Print cache metadata file
run :
cat /cache/.ns/cache-metadata.json

0 comments on commit 01efbc8

Please sign in to comment.