feat: pnpm (#1917)

This commit is contained in:
Jason Rasmussen
2026-08-28 19:40:02 -04:00
committed by GitHub
parent a77daeab05
commit da72488709
16 changed files with 2536 additions and 3648 deletions
+11 -11
View File
@@ -29,6 +29,9 @@ jobs:
- 'scripts/**'
force-filters: |
- '.github/workflows/scripts.yml'
- 'package.json'
- 'pnpm-workspace.yaml'
- 'pnpm-lock.yaml'
scripts-unit-tests:
name: Test & Lint Scripts
@@ -37,9 +40,6 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
defaults:
run:
working-directory: ./scripts
steps:
- name: Checkout code
@@ -47,22 +47,22 @@ jobs:
with:
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- name: Setup Mise
uses: immich-app/devtools/actions/use-mise@06a9ef925332c91be647d6256642b86b398592c8 # use-mise-action-v3.2.1
with:
node-version-file: './scripts/.nvmrc'
github_token: ${{ github.token }}
- name: Run npm install
run: npm ci
- name: Install dependencies
run: pnpm --filter @immich/scripts install --frozen-lockfile
- name: Run linter
run: npm run lint
run: pnpm --filter @immich/scripts lint
if: ${{ !cancelled() }}
- name: Run formatter
run: npm run format
run: pnpm --filter @immich/scripts format
if: ${{ !cancelled() }}
- name: Run tsc
run: npm run check
run: pnpm --filter @immich/scripts check
if: ${{ !cancelled() }}
+10 -11
View File
@@ -27,6 +27,9 @@ jobs:
- 'actions/sticky-comment/**'
force-filters: |
- '.github/workflows/test-sticky-comment.yml'
- 'package.json'
- 'pnpm-workspace.yaml'
- 'pnpm-lock.yaml'
build-check:
name: Verify dist is up to date
@@ -35,29 +38,25 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
defaults:
run:
working-directory: ./actions/sticky-comment
steps:
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Setup Node
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
- name: Setup Mise
uses: immich-app/devtools/actions/use-mise@06a9ef925332c91be647d6256642b86b398592c8 # use-mise-action-v3.2.1
with:
node-version-file: './actions/sticky-comment/.nvmrc'
github_token: ${{ github.token }}
- run: npm ci
- run: npm run check
- run: npm run build
- run: pnpm --filter @immich/sticky-comment-action install --frozen-lockfile
- run: pnpm --filter @immich/sticky-comment-action check
- run: pnpm --filter @immich/sticky-comment-action build
- name: Verify dist/ matches source
working-directory: .
run: |
if ! git diff --exit-code actions/sticky-comment/dist; then
echo "::error::dist/ is out of date. Run 'npm run build' in actions/sticky-comment and commit the result."
echo "::error::dist/ is out of date. Run 'pnpm --filter @immich/sticky-comment-action build' and commit the result."
exit 1
fi