diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 9d01d6df..a4750a88 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,9 +12,6 @@ jobs: name: Lint runs-on: ubuntu-latest if: github.repository_owner == 'wg-easy' - defaults: - run: - working-directory: ./src steps: - name: Checkout repository uses: actions/checkout@v4 @@ -33,5 +30,6 @@ jobs: - name: pnpm lint run: | + cd src pnpm install pnpm lint diff --git a/.github/workflows/npm-update-bot.yml b/.github/workflows/npm-update-bot.yml index 7df5de4f..720ca49a 100644 --- a/.github/workflows/npm-update-bot.yml +++ b/.github/workflows/npm-update-bot.yml @@ -2,7 +2,7 @@ name: NPM Update Bot 🤖 on: push: - branches: [ "master" ] + branches: ["master"] schedule: - cron: "0 0 * * 1" @@ -17,22 +17,27 @@ jobs: with: repository: wg-easy/wg-easy ref: master + + - uses: pnpm/action-setup@v4 + name: Install pnpm + with: + run_install: false + - name: Setup Node uses: actions/setup-node@v4 with: - node-version: '20' + node-version: "20" check-latest: true - cache: 'npm' + cache: "pnpm" - name: Bot 🤖 "Updating NPM Packages..." run: | npm install -g --silent npm-check-updates - ncu -u - npm update + ncu -p pnpm -u + pnpm update cd src - ncu -u - npm update - npm run buildcss + ncu -p pnpm -u + pnpm update git config --global user.name 'NPM Update Bot' git config --global user.email 'npmupbot@users.noreply.github.com' git add . diff --git a/package-lock.json b/package-lock.json deleted file mode 100644 index f57675bd..00000000 --- a/package-lock.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "wg-easy", - "version": "1.0.1", - "lockfileVersion": 3, - "requires": true, - "packages": { - "": { - "version": "1.0.1" - } - } -} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 00000000..9b60ae17 --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,9 @@ +lockfileVersion: '9.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +importers: + + .: {}