From 36c8233bee8e223e8d67ed9db442b53dbbb499a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Correa=20Casablanca?= Date: Thu, 8 Aug 2024 21:26:01 +0200 Subject: [PATCH] fix: configure pnpm login Signed-off-by: Andres Correa Casablanca --- .github/workflows/npm_publish.yml | 15 +- .hooks/pre-commit | 1 + @coderspirit/lambda-ioc/package.json | 5 +- @coderspirit/nominal-inputs/package.json | 5 +- @coderspirit/nominal-symbols/package.json | 5 +- @coderspirit/nominal/package.json | 5 +- @coderspirit/safe-env/package.json | 5 +- deno.lock | 159 ++++++++++++++++++++++ 8 files changed, 191 insertions(+), 9 deletions(-) create mode 100644 deno.lock diff --git a/.github/workflows/npm_publish.yml b/.github/workflows/npm_publish.yml index 3c86b2c..c773c60 100644 --- a/.github/workflows/npm_publish.yml +++ b/.github/workflows/npm_publish.yml @@ -31,17 +31,24 @@ jobs: - name: "Use Node.js ${{ matrix.node-version }}" # v4.0.2 uses: "actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8" with: - node-version: "${{ matrix.node-version }}" - cache: "pnpm" - registry-url: "https://registry.npmjs.org" + node-version: "${{ matrix.node-version }}" + cache: "pnpm" + registry-url: "https://registry.npmjs.org" - name: "Use Deno ${{ matrix.deno-version }}" # v1.3.0 uses: denoland/setup-deno@ba9dcf3bc3696623d1add6a2f5181ee1b5143de5 with: deno-version: "${{ matrix.deno-version }}" - name: "Install dependencies" run: "pnpm install --recursive --frozen-lockfile" + - name: "Login into NPMJS" + run: | + pnpm config set "//registry.npmjs.org/:_authToken" "${NODE_AUTH_TOKEN}"; + echo "provenance=true" >> .npmrc + echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> .npmrc + env: + NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}" - name: "Publish to NPM registry" - run: "pnpm turbo publish:safe" + run: "pnpm turbo publish:safe --env-mode=loose" working-directory: "." env: NPM_CONFIG_PROVENANCE: "true" diff --git a/.hooks/pre-commit b/.hooks/pre-commit index 89ee785..444200e 100755 --- a/.hooks/pre-commit +++ b/.hooks/pre-commit @@ -3,4 +3,5 @@ set -eu set -o pipefail +pnpm turbo format-staged pnpm turbo all diff --git a/@coderspirit/lambda-ioc/package.json b/@coderspirit/lambda-ioc/package.json index 383f222..6fb32bc 100644 --- a/@coderspirit/lambda-ioc/package.json +++ b/@coderspirit/lambda-ioc/package.json @@ -53,5 +53,8 @@ "bugs": { "url": "https://github.com/Coder-Spirit/nominal/issues" }, - "homepage": "https://github.com/Coder-Spirit/nominal#readme" + "homepage": "https://github.com/Coder-Spirit/nominal#readme", + "publishConfig": { + "provenance": true + } } diff --git a/@coderspirit/nominal-inputs/package.json b/@coderspirit/nominal-inputs/package.json index c41de93..2d06b41 100644 --- a/@coderspirit/nominal-inputs/package.json +++ b/@coderspirit/nominal-inputs/package.json @@ -58,5 +58,8 @@ "bugs": { "url": "https://github.com/Coder-Spirit/nominal/issues" }, - "homepage": "https://github.com/Coder-Spirit/nominal#readme" + "homepage": "https://github.com/Coder-Spirit/nominal#readme", + "publishConfig": { + "provenance": true + } } diff --git a/@coderspirit/nominal-symbols/package.json b/@coderspirit/nominal-symbols/package.json index 7d89327..b7d8a17 100644 --- a/@coderspirit/nominal-symbols/package.json +++ b/@coderspirit/nominal-symbols/package.json @@ -58,5 +58,8 @@ "bugs": { "url": "https://github.com/Coder-Spirit/nominal/issues" }, - "homepage": "https://github.com/Coder-Spirit/nominal#readme" + "homepage": "https://github.com/Coder-Spirit/nominal#readme", + "publishConfig": { + "provenance": true + } } diff --git a/@coderspirit/nominal/package.json b/@coderspirit/nominal/package.json index 1e842e4..1bec86e 100644 --- a/@coderspirit/nominal/package.json +++ b/@coderspirit/nominal/package.json @@ -60,5 +60,8 @@ "bugs": { "url": "https://github.com/Coder-Spirit/nominal/issues" }, - "homepage": "https://github.com/Coder-Spirit/nominal#readme" + "homepage": "https://github.com/Coder-Spirit/nominal#readme", + "publishConfig": { + "provenance": true + } } diff --git a/@coderspirit/safe-env/package.json b/@coderspirit/safe-env/package.json index c9fe95a..2f911b2 100644 --- a/@coderspirit/safe-env/package.json +++ b/@coderspirit/safe-env/package.json @@ -61,5 +61,8 @@ "bugs": { "url": "https://github.com/Coder-Spirit/nominal/issues" }, - "homepage": "https://github.com/Coder-Spirit/nominal#readme" + "homepage": "https://github.com/Coder-Spirit/nominal#readme", + "publishConfig": { + "provenance": true + } } diff --git a/deno.lock b/deno.lock new file mode 100644 index 0000000..9e9ca09 --- /dev/null +++ b/deno.lock @@ -0,0 +1,159 @@ +{ + "version": "3", + "packages": { + "specifiers": { + "npm:zx@8.1.4": "npm:zx@8.1.4" + }, + "npm": { + "@types/fs-extra@11.0.4": { + "integrity": "sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==", + "dependencies": { + "@types/jsonfile": "@types/jsonfile@6.1.4", + "@types/node": "@types/node@18.16.19" + } + }, + "@types/jsonfile@6.1.4": { + "integrity": "sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==", + "dependencies": { + "@types/node": "@types/node@18.16.19" + } + }, + "@types/node@18.16.19": { + "integrity": "sha512-IXl7o+R9iti9eBW4Wg2hx1xQDig183jj7YLn8F7udNceyfkbn1ZxmzZXuak20gR40D7pIkIY1kYGx5VIGbaHKA==", + "dependencies": {} + }, + "@types/node@22.1.0": { + "integrity": "sha512-AOmuRF0R2/5j1knA3c6G3HOk523Ga+l+ZXltX8SF1+5oqcXijjfTd8fY3XRZqSihEu9XhtQnKYLmkFaoxgsJHw==", + "dependencies": { + "undici-types": "undici-types@6.13.0" + } + }, + "undici-types@6.13.0": { + "integrity": "sha512-xtFJHudx8S2DSoujjMd1WeWvn7KKWFRESZTMeL1RptAYERu29D6jphMjjY+vn96jvN3kVPDNxU/E13VTaXj6jg==", + "dependencies": {} + }, + "zx@8.1.4": { + "integrity": "sha512-QFDYYpnzdpRiJ3dL2102Cw26FpXpWshW4QLTGxiYfIcwdAqg084jRCkK/kuP/NOSkxOjydRwNFG81qzA5r1a6w==", + "dependencies": { + "@types/fs-extra": "@types/fs-extra@11.0.4", + "@types/node": "@types/node@22.1.0" + } + } + } + }, + "remote": {}, + "workspace": { + "packageJson": { + "dependencies": [ + "npm:@biomejs/biome@1.8.3", + "npm:turbo@^2.0.12" + ] + }, + "members": { + "@coderspirit/dev-configs": { + "packageJson": { + "dependencies": [ + "npm:@biomejs/biome@1.8.3" + ] + } + }, + "@coderspirit/internal-tools": { + "packageJson": { + "dependencies": [ + "npm:@biomejs/biome@^1.8.3", + "npm:typescript@^5.5.4" + ] + } + }, + "@coderspirit/lambda-ioc": { + "packageJson": { + "dependencies": [ + "npm:@arethetypeswrong/cli@^0.15.4", + "npm:@biomejs/biome@1.8.3", + "npm:get-tsconfig@^4.7.6", + "npm:publint@^0.2.9", + "npm:rollup-plugin-dts@^6.1.1", + "npm:rollup-plugin-esbuild@^6.1.1", + "npm:rollup@^4.20.0", + "npm:tslib@^2.6.3", + "npm:turbo@^2.0.12", + "npm:typescript@^5.5.4", + "npm:vitest@^2.0.5" + ] + } + }, + "@coderspirit/nominal": { + "packageJson": { + "dependencies": [ + "npm:@arethetypeswrong/cli@^0.15.4", + "npm:@biomejs/biome@1.8.3", + "npm:@types/node@^22.1.0", + "npm:get-tsconfig@^4.7.6", + "npm:publint@^0.2.9", + "npm:rollup-plugin-dts@^6.1.1", + "npm:rollup-plugin-esbuild@^6.1.1", + "npm:rollup@^4.20.0", + "npm:tslib@^2.6.3", + "npm:turbo@^2.0.12", + "npm:typescript@^5.5.4", + "npm:vitest@^2.0.5" + ] + } + }, + "@coderspirit/nominal-inputs": { + "packageJson": { + "dependencies": [ + "npm:@arethetypeswrong/cli@^0.15.4", + "npm:@biomejs/biome@1.8.3", + "npm:@types/node@^22.1.0", + "npm:get-tsconfig@^4.7.6", + "npm:publint@^0.2.9", + "npm:rollup-plugin-dts@^6.1.1", + "npm:rollup-plugin-esbuild@^6.1.1", + "npm:rollup@^4.20.0", + "npm:tslib@^2.6.3", + "npm:turbo@^2.0.12", + "npm:typescript@^5.5.4", + "npm:vitest@^2.0.5" + ] + } + }, + "@coderspirit/nominal-symbols": { + "packageJson": { + "dependencies": [ + "npm:@arethetypeswrong/cli@^0.15.4", + "npm:@biomejs/biome@1.8.3", + "npm:@types/node@^22.1.0", + "npm:get-tsconfig@^4.7.6", + "npm:publint@^0.2.9", + "npm:rollup-plugin-dts@^6.1.1", + "npm:rollup-plugin-esbuild@^6.1.1", + "npm:rollup@^4.20.0", + "npm:tslib@^2.6.3", + "npm:turbo@^2.0.12", + "npm:typescript@^5.5.4", + "npm:vitest@^2.0.5" + ] + } + }, + "@coderspirit/safe-env": { + "packageJson": { + "dependencies": [ + "npm:@arethetypeswrong/cli@^0.15.4", + "npm:@biomejs/biome@1.8.3", + "npm:@types/node@^22.1.0", + "npm:get-tsconfig@^4.7.6", + "npm:publint@^0.2.9", + "npm:rollup-plugin-dts@^6.1.1", + "npm:rollup-plugin-esbuild@^6.1.1", + "npm:rollup@^4.20.0", + "npm:tslib@^2.6.3", + "npm:turbo@^2.0.12", + "npm:typescript@^5.5.4", + "npm:vitest@^2.0.5" + ] + } + } + } + } +}