diff --git a/.github/workflows/changeset.yaml b/.github/workflows/changeset.yaml index 5fae8eaa..5e42cf28 100644 --- a/.github/workflows/changeset.yaml +++ b/.github/workflows/changeset.yaml @@ -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: | @@ -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 }} diff --git a/package.json b/package.json index 749eeb26..e72c0f1e 100644 --- a/package.json +++ b/package.json @@ -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",