From d5ed76c8675a0aa5c91c4b8fcee4a99f59c288a4 Mon Sep 17 00:00:00 2001 From: jiwangyihao Date: Fri, 16 May 2025 01:38:06 +0800 Subject: [PATCH] fix: add .npmrc for allowed scripts --- .github/workflows/nuxtjs.yml | 4 +--- .npmrc | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) create mode 100644 .npmrc diff --git a/.github/workflows/nuxtjs.yml b/.github/workflows/nuxtjs.yml index f6e7c1d..3388d33 100644 --- a/.github/workflows/nuxtjs.yml +++ b/.github/workflows/nuxtjs.yml @@ -56,9 +56,7 @@ jobs: restore-keys: | ${{ runner.os }}-nuxt-build- - name: Install dependencies - run: | - echo "y" | pnpm approve-builds - pnpm install + run: pnpm install - name: Static HTML export with Nuxt run: pnpm generate - name: Upload artifact diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..3f8582f --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +allowed-dep-scripts=@parcel/watcher, @tailwindcss/oxide, esbuild, sharp, unrs-resolver \ No newline at end of file