Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,14 @@ jobs:
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
- name: Update npm
run: npm install -g npm@latest
- uses: pnpm/action-setup@v6
with:
version: 11
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
env:
HUSKY: 0 # Disable husky within CI/CD
- name: Run quality checks
run: npm run quality
run: pnpm quality
- name: Build project
run: npm run build
run: pnpm build
13 changes: 7 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ jobs:
with:
node-version: 24
registry-url: 'https://registry.npmjs.org'
- name: Update npm
run: npm install -g npm@latest # NPM Trusted Publishing requires npm 11.5.1 or later
- uses: pnpm/action-setup@v6
with:
version: 11
- name: Install dependencies
run: npm ci
run: pnpm install --frozen-lockfile
env:
HUSKY: 0 # Disable husky within CI/CD
- uses: googleapis/release-please-action@v4
Expand All @@ -34,10 +35,10 @@ jobs:
manifest-file: .release-please-manifest.json
- name: Build project
if: ${{ steps.release.outputs.release_created }}
run: npm run build
run: pnpm build
- name: Bundle tarball
if: ${{ steps.release.outputs.release_created }}
run: npm run package
run: pnpm package
- name: Publish to npm
if: ${{ steps.release.outputs.release_created }}
run: npm publish
run: pnpm publish --provenance
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npm run commitlint -- --edit $1
pnpm commitlint -- --edit $1
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
npm run quality && npx lint-staged
pnpm quality && pnpx lint-staged
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ First, add the package as a dependency, like so:
npm install react-singleton-context
```

or, if using Yarn:
or, if using pnpm:

```
yarn add react-singleton-context
pnpm add react-singleton-context
```

Once that's done, go ahead and add it as an eager singleton to your Webpack config's Module Federation plugin declaration:
Expand Down Expand Up @@ -71,10 +71,10 @@ Like you did with the host application, it's time to add the package to the libr
npm install react-singleton-context --save-dev
```

or, if using Yarn:
or, if using pnpm:

```
yarn add react-singleton-context --dev
pnpm add react-singleton-context -d
```

Then, add `react-singleton-context` as a `peerDependency` for this library, too. Doing so will necessitate a major version bump for your library, as that's a breaking change.
Expand Down
Loading