Skip to content

Commit

Permalink
convert to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbes7878 committed Jul 29, 2023
1 parent 529e422 commit 7aad038
Show file tree
Hide file tree
Showing 5 changed files with 13,114 additions and 11,589 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v3
- name: Install dependencies
run: yarn
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true
- name: Publish to Chromatic
uses: chromaui/action@v1
with:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Prepare repository
run: git fetch --unshallow --tags
Expand All @@ -18,11 +18,14 @@ jobs:
node-version: 20.x

- name: Install dependencies
uses: bahmutov/npm-install@v1
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true

- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn release
npm run release
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@
"scripts": {
"clean": "rimraf ./dist",
"build": "svelte-package --input ./src --types",
"prepublish": "yarn clean && yarn build",
"prepublish": "npm run clean && npm run build",
"test": "vitest run",
"chromatic": "chromatic --exit-zero-on-changes",
"coverage": "vitest run --coverage",
"lint": "eslint --cache --cache-location=.cache/eslint --ext .js,.jsx,.json,.html,.ts,.tsx,.mjs --report-unused-disable-directives",
"storybook": "storybook dev --port 6006",
"start": "concurrently \"yarn storybook --quiet\" \"yarn build --watch\"",
"start": "concurrently \"npm run storybook --quiet\" \"npm run build --watch\"",
"build-storybook": "sb build",
"release": "yarn build && auto shipit"
"release": "npm run build && auto shipit"
},
"dependencies": {
"@babel/runtime": "^7.22.6",
Expand All @@ -53,11 +53,14 @@
},
"devDependencies": {
"@auto-it/released": "^10.32.6",
"@storybook/addon-actions": "^7.1.1",
"@storybook/addon-essentials": "^7.1.1",
"@storybook/addon-interactions": "^7.1.1",
"@storybook/client-api": "^7.1.1",
"@storybook/client-logger": "^7.1.1",
"@storybook/core-client": "^7.1.1",
"@storybook/core-server": "^7.1.1",
"@storybook/csf": "^0.1.1",
"@storybook/eslint-config-storybook": "^3.1.2",
"@storybook/jest": "^0.1.0",
"@storybook/svelte": "^7.1.1",
Expand All @@ -79,7 +82,7 @@
"react-dom": "^18.2.0",
"rimraf": "^3.0.2",
"storybook": "^7.1.1",
"svelte": "^3.58.0 || ^4.0.0",
"svelte": "^4.0.0",
"svelte-jester": "^2.3.2",
"svelte-loader": "^3.1.7",
"typescript": "^5.1.6",
Expand All @@ -94,10 +97,6 @@
"svelte-loader": "^3.1.2",
"vite": "^3.0.0 || ^4.0.0"
},
"resolutions": {
"string-width": "4.2.3",
"wrap-ansi": "7.0.0"
},
"peerDependenciesMeta": {
"@sveltejs/vite-plugin-svelte": {
"optional": true
Expand Down
Loading

0 comments on commit 7aad038

Please sign in to comment.