Skip to content

Commit

Permalink
chore: switch to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
birtles committed Oct 3, 2024
1 parent 3b7e784 commit fcd6d8f
Show file tree
Hide file tree
Showing 5 changed files with 4,878 additions and 4,214 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,20 @@ jobs:

steps:
- uses: actions/[email protected]

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: latest

- uses: actions/[email protected]
with:
node-version: 20
cache: yarn
cache: pnpm
registry-url: 'https://registry.npmjs.org'

- name: Install
run: yarn install
run: pnpm install

- name: Set Git username
run: |-
Expand All @@ -34,14 +40,14 @@ jobs:
- name: Publish default version
if: ${{ inputs.version == '' }}
run: yarn release-it --ci
run: pnpm release-it --ci
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish
if: ${{ inputs.version }}
run: yarn release-it --ci -i ${{ inputs.version }}
run: pnpm release-it --ci -i ${{ inputs.version }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 11 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,24 @@ jobs:

steps:
- uses: actions/[email protected]

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: latest

- uses: actions/[email protected]
with:
node-version: 20
cache: yarn
cache: pnpm

- name: Build
run: |
yarn install
yarn build
pnpm install
pnpm build
- name: Unit tests
run: yarn test
run: pnpm test

- name: Knip
run: yarn knip
run: pnpm knip
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,5 @@ Converts half-width numbers to full-width.
## Publishing

```
yarn release-it
pnpm release-it
```
Loading

0 comments on commit fcd6d8f

Please sign in to comment.