Skip to content

Commit

Permalink
Merge pull request #58 from valiantlynx:working
Browse files Browse the repository at this point in the history
pnpm
  • Loading branch information
valiantlynx authored Apr 8, 2024
2 parents 3fe2bab + ad4f12b commit 5a21723
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/changeset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,23 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v3

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

- name: Setup Node.js and npm config
uses: actions/setup-node@v3
with:
node-version: '21'
node-version: '21.x'
registry-url: 'https://registry.npmjs.org/'
scope: '@valiantlynx'
cache: "pnpm"

- name: Install Dependencies
run: npm install
run: pnpm install --frozen-lockfile

- name: Build
run: npm run build && npm run package
run: pnpm run build && pnpm run package

- name: Configure .npmrc for Publishing
run: |
Expand All @@ -47,7 +52,7 @@ jobs:
with:
# Ensure you have a script in your package.json named "release" that is configured for npm.
# This could simply be: "release": "npm publish --access public" or include the changeset publish command as needed.
publish: npm run release
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
},
"scripts": {
"dev": "vite --host",
"build": "vite build && npm run package",
"build": "vite build && pnpm run package",
"preview": "vite preview",
"package": "svelte-kit sync && svelte-package && publint",
"release": "npm run package && npx changeset publish",
"release": "pnpm run package && changeset publish",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"test": "vitest",
Expand Down

0 comments on commit 5a21723

Please sign in to comment.