@pnpm.e2e/testing-provenance2 0.0.2 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,15 +15,12 @@ jobs:
15
15
  steps:
16
16
  - name: Checkout
17
17
  uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
18
- - name: Install pnpm
19
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # v4.2.0
18
+ - name: Install Node.js
19
+ uses: actions/setup-node@v6
20
20
  with:
21
- standalone: true
22
- - name: npm install
23
- run: pnpm install --global npm@11.6.2
24
- - name: pnpm install
25
- run: pnpm install
21
+ node-version: 24
22
+ - name: Install dependencies
23
+ run: node ./pnpm-dist/pnpm.mjs install
26
24
  - name: Publish Packages
27
- continue-on-error: true
28
- run: pnpm publish --no-git-checks
25
+ run: node ./pnpm-dist/pnpm.mjs publish --provenance --no-git-checks
29
26
 
@@ -0,0 +1,14 @@
1
+ #! /usr/bin/env node
2
+ const fs = require('fs')
3
+ const { spawnSync } = require('exec-inline')
4
+ const manifest = require('./package.json')
5
+ const [major, minor, oldPatch] = manifest.version.split('.')
6
+ const newPatch = Number(oldPatch) + 1
7
+ manifest.version = `${major}.${minor}.${newPatch}`
8
+ fs.writeFileSync(
9
+ require.resolve('./package.json'),
10
+ JSON.stringify(manifest, undefined, 2) + '\n',
11
+ )
12
+ spawnSync('git', 'add', '-v', './package.json').exit.onerror()
13
+ spawnSync('git', 'commit', '-v', '-m', manifest.version).exit.onerror()
14
+ spawnSync('git', 'tag', `v${manifest.version}`).exit.onerror()
package/copy-pnpm ADDED
@@ -0,0 +1,16 @@
1
+ #! /bin/bash
2
+ set -o errexit -o pipefail -o nounset
3
+ cd "$(dirname "$0")"
4
+
5
+ (
6
+ echo 'Compiling...'
7
+ cd ../pnpm
8
+ pnpm ts-node __utils__/scripts/src/typecheck-only.ts
9
+ pnpm --filter=pnpm bundle
10
+ )
11
+
12
+ (
13
+ echo 'Copying...'
14
+ mkdir -pv ./pnpm-dist
15
+ cp -rv ../pnpm/pnpm/dist/* ./pnpm-dist
16
+ )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm.e2e/testing-provenance2",
3
- "version": "0.0.2",
3
+ "version": "0.0.6",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "keywords": [],
@@ -10,6 +10,9 @@
10
10
  "type": "git",
11
11
  "url": "git+https://github.com/pnpm-e2e/testing-provenance2.git"
12
12
  },
13
+ "devDependencies": {
14
+ "exec-inline": "^0.0.5"
15
+ },
13
16
  "scripts": {
14
17
  "test": "echo \"Error: no test specified\" && exit 1"
15
18
  }
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env sh
2
+ if [ "x$npm_config_node_gyp" = "x" ]; then
3
+ node "`dirname "$0"`/../node_modules/node-gyp/bin/node-gyp.js" "$@"
4
+ else
5
+ "$npm_config_node_gyp" "$@"
6
+ fi
@@ -0,0 +1,5 @@
1
+ if not defined npm_config_node_gyp (
2
+ node "%~dp0\..\node_modules\node-gyp\bin\node-gyp.js" %*
3
+ ) else (
4
+ node "%npm_config_node_gyp%" %*
5
+ )