Skip to content

Commit

Permalink
Switch to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Aug 29, 2024
1 parent 78c9ed2 commit 095b288
Show file tree
Hide file tree
Showing 7 changed files with 7,591 additions and 9,726 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,15 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: pnpm/action-setup@v4
with:
version: 9
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: yarn
run: pnpm install
- name: Publish to Chromatic
uses: chromaui/action@latest
with:
Expand Down
18 changes: 7 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ jobs:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: pnpm/action-setup@v4
with:
version: 9

- uses: actions/checkout@v2
with:
token: ${{ secrets.AUTO_RELEASE_TOKEN_GHENGEVELD }}
Expand All @@ -17,19 +21,11 @@ jobs:
with:
node-version: latest

- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
key: yarn-deps-${{ hashFiles('yarn.lock') }}
restore-keys: |
yarn-deps-${{ hashFiles('yarn.lock') }}
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn install --frozen-lockfile
yarn prepublish
yarn release
pnpm install
pnpm run prepublish
pnpm run release
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/checkout@v2
- name: Install modules
run: yarn
run: pnpm install
- name: Run tests
run: yarn test
run: pnpm run test
925 changes: 0 additions & 925 deletions .yarn/releases/yarn-4.4.1.cjs

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
},
"devDependencies": {
"@chromatic-com/storybook": "^1.7.0",
"@storybook/react": "^8.2.9",
"@storybook/react-vite": "^8.2.9",
"@types/node": "^18.19.0",
"@vitejs/plugin-react": "^4.3.1",
Expand Down
Loading

0 comments on commit 095b288

Please sign in to comment.