diff --git a/.github/workflows/package-manager-ci.yml b/.github/workflows/package-manager-ci.yml index cf2fe8dad..b76806506 100644 --- a/.github/workflows/package-manager-ci.yml +++ b/.github/workflows/package-manager-ci.yml @@ -6,6 +6,8 @@ on: - package-manager-load permissions: contents: read +env: + PNPM_CI: true jobs: pnpm: name: pnpm package manager on ${{ matrix.node-version }} ${{ matrix.os }} diff --git a/test/pkg/pkg.test.js b/test/pkg/pkg.test.js index 1def2f897..c8abcb61c 100644 --- a/test/pkg/pkg.test.js +++ b/test/pkg/pkg.test.js @@ -18,7 +18,7 @@ const exec = promisify(require('child_process').exec) */ const deprecationWarningRegex = /^\(\w+:\d+\)\s\[[\w|\d]+\]\sDeprecationWarning: The `punycode` module is deprecated\.\s+Please use a userland alternative instead\.\s+\(Use `node --trace-deprecation \.\.\.` to show where the warning was created\)\s+$/ -test('worker test when packaged into executable using pkg', async (t) => { +test('worker test when packaged into executable using pkg', { skip: !!process.env.PNPM_CI }, async (t) => { const packageName = 'index' // package the app into several node versions, check config for more info