Skip to content

Commit

Permalink
migrate to pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
trim21 committed Aug 9, 2024
1 parent 89641c9 commit 2b8530c
Show file tree
Hide file tree
Showing 9 changed files with 14,161 additions and 13 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'npm'
cache: 'pnpm'

- run: npm ci
- run: pnpm install --frozen-lockfile
- run: npm run build
- run: npm run start -- --help
4 changes: 2 additions & 2 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
cache: 'pnpm'

- run: npm ci
- run: pnpm install --frozen-lockfile
- run: npm run ${{ matrix.check }}
3 changes: 2 additions & 1 deletion .github/workflows/distribute-debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'
cache: npm
cache: 'pnpm'

- name: Set up QEMU
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-rolling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
with:
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'
cache: npm
cache: pnpm

- run: npm ci
- run: pnpm install --frozen-lockfile

- name: Tag rolling release
id: tag_release
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
with:
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'
cache: npm
cache: 'pnpm'

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'
cache: npm
cache: 'pnpm'

- run: sudo npm i -g pkg
- run: npm ci
- run: pnpm install --frozen-lockfile

- run: npm publish --access public
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm
cache: 'pnpm'

- run: sudo add-apt-repository -y ppa:qbittorrent-team/qbittorrent-stable
- run: sudo add-apt-repository -y ppa:transmissionbt/ppa
Expand All @@ -34,7 +34,7 @@ jobs:
wget https://github.com/jesec/rtorrent/releases/latest/download/rtorrent-linux-amd64.deb
sudo dpkg -i rtorrent-linux-amd64.deb
- run: npm ci
- run: pnpm install --frozen-lockfile
- run: npm test || npm test || npm test

- uses: codecov/codecov-action@v3
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ dist-pkg/

# Coverage reports
coverage/
pnpm-lock.yaml
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ WORKDIR /usr/src/app/
COPY . ./

# Fetch dependencies from npm
RUN npm ci --legacy-peer-deps
RUN pnpm install --frozen-lockfile --legacy-peer-deps

# Build assets
RUN npm run build
Expand Down
Loading

0 comments on commit 2b8530c

Please sign in to comment.