From b90dceddd1a756f3623ace485d0d03343c3fc39d Mon Sep 17 00:00:00 2001 From: Ben Christianson Date: Sat, 29 Jun 2024 21:56:49 -0500 Subject: [PATCH] Convert build to pnpm --- .github/workflows/lint.yaml | 27 ++++++++++++++++++--------- .prettierignore | 1 + .yamllint.yaml | 1 + 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 4f95ff9..f1e74fe 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -9,40 +9,49 @@ jobs: runs-on: "ubuntu-latest" steps: - uses: "actions/checkout@v4" + - uses: "pnpm/action-setup/@v4" + with: + version: "latest" - uses: "actions/setup-node@v4" with: node-version: "lts/iron" - cache: "npm" + cache: "pnpm" - name: "Install Dependencies" - run: "npm ci" + run: "pnpm install --frozen-lockfile" - name: "Run eslint" - run: "npm run lint:ts" + run: "pnpm lint:ts" prettier: name: "Run Prettier" runs-on: "ubuntu-latest" steps: - uses: "actions/checkout@v4" + - uses: "pnpm/action-setup/@v4" + with: + version: "latest" - uses: "actions/setup-node@v4" with: node-version: "lts/iron" - cache: "npm" + cache: "pnpm" - name: "Install Dependencies" - run: "npm ci" + run: "pnpm install --frozen-lockfile" - name: "Run prettier" - run: "npm run prettier" + run: "pnpm prettier" markdownlint: name: "Run Markdownlint" runs-on: "ubuntu-latest" steps: - uses: "actions/checkout@v4" + - uses: "pnpm/action-setup/@v4" + with: + version: "latest" - uses: "actions/setup-node@v4" with: node-version: "lts/iron" - cache: "npm" + cache: "pnpm" - name: "Install Dependencies" - run: "npm ci" + run: "pnpm install --frozen-lockfile" - name: "Run markdownlint" - run: "npm run mdl" + run: "pnpm mdl" yaml: name: "Lint YAML" runs-on: "ubuntu-latest" diff --git a/.prettierignore b/.prettierignore index 224fa1f..f784a27 100644 --- a/.prettierignore +++ b/.prettierignore @@ -1,3 +1,4 @@ /target /sounds /.stryker-tmp +/pnpm-lock.yaml diff --git a/.yamllint.yaml b/.yamllint.yaml index 6699ed6..640cabd 100644 --- a/.yamllint.yaml +++ b/.yamllint.yaml @@ -4,6 +4,7 @@ ignore: - "/node_modules" - "/target" - "/sounds" + - "/pnpm-lock.yaml" rules: truthy: check-keys: false