From bed505fbe25d8751a40aa6cc928410114d633f2b Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Sun, 10 Nov 2024 01:39:22 +0000 Subject: [PATCH] Switch to pnpm --- .forgejo/workflows/deploy.yml | 6 +++--- package.json | 5 +++++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml index 6126795..6459676 100644 --- a/.forgejo/workflows/deploy.yml +++ b/.forgejo/workflows/deploy.yml @@ -11,9 +11,9 @@ jobs: - name: Check out repository code uses: actions/checkout@v3 - name: Install dependencies - run: time npm install + run: time pnpm install - name: Run Tests - run: npm run test -- --ignore-only + run: pnpm run test --ignore-only - name: Deply if new version run: | echo "" @@ -37,7 +37,7 @@ jobs: -H "Authorization: token ${{ secrets.deploytoken }}" \ -H "Content-Type: application/json" \ https://git.nfp.is/api/v1/repos/${{ github.repository }}/releases \ - -d "{\"tag_name\":\"${CURR_VER}\",\"name\":\"${CURR_NAME}\",\"body\":\"Automatic release from Appveyor from ${{ github.sha }} :\n\n${{ github.event.head_commit.message }}\"}" + -d "{\"tag_name\":\"${CURR_VER}\",\"name\":\"${CURR_NAME}\",\"body\":\"Automatic release from Appveyor from ${{ github.sha }} :\n\n${{ github.event.head_commit.message }}\"}" | jq echo "//registry.npmjs.org/:_authToken=${{ secrets.npmtoken }}" > ~/.npmrc echo "Publishing new version to npm" diff --git a/package.json b/package.json index db5a3ae..8aad104 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,11 @@ "eltro": "^1.3.2", "formidable": "^1.2.2" }, + "pnpm": { + "allowedDeprecatedVersions": { + "formidable": "1" + } + }, "files": [ "flaska.mjs", "README.md",