Skip to content

Commit 0bef6bd

Browse files
committed
fix: configure pnpm login
Signed-off-by: Andres Correa Casablanca <andreu@kindspells.dev>
1 parent 4a018a0 commit 0bef6bd

File tree

9 files changed

+193
-9
lines changed

9 files changed

+193
-9
lines changed

.github/workflows/npm_publish.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,22 @@ jobs:
3131
- name: "Use Node.js ${{ matrix.node-version }}" # v4.0.2
3232
uses: "actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8"
3333
with:
34-
node-version: "${{ matrix.node-version }}"
35-
cache: "pnpm"
36-
registry-url: "https://registry.npmjs.org"
34+
node-version: "${{ matrix.node-version }}"
35+
cache: "pnpm"
36+
registry-url: "https://registry.npmjs.org"
3737
- name: "Use Deno ${{ matrix.deno-version }}" # v1.3.0
3838
uses: denoland/setup-deno@ba9dcf3bc3696623d1add6a2f5181ee1b5143de5
3939
with:
4040
deno-version: "${{ matrix.deno-version }}"
4141
- name: "Install dependencies"
4242
run: "pnpm install --recursive --frozen-lockfile"
43+
- name: "Login into NPMJS"
44+
run: |
45+
pnpm config set "//registry.npmjs.org/:_authToken" "${NODE_AUTH_TOKEN}";
46+
echo "provenance=true" >> .npmrc
47+
echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" >> .npmrc
48+
env:
49+
NODE_AUTH_TOKEN: "${{ secrets.NPM_TOKEN }}"
4350
- name: "Publish to NPM registry"
4451
run: "pnpm turbo publish:safe"
4552
working-directory: "."

.hooks/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
set -eu
44
set -o pipefail
55

6+
pnpm turbo format-staged
67
pnpm turbo all

@coderspirit/lambda-ioc/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,8 @@
5353
"bugs": {
5454
"url": "https://github.com/Coder-Spirit/nominal/issues"
5555
},
56-
"homepage": "https://github.com/Coder-Spirit/nominal#readme"
56+
"homepage": "https://github.com/Coder-Spirit/nominal#readme",
57+
"publishConfig": {
58+
"provenance": true
59+
}
5760
}

@coderspirit/nominal-inputs/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,8 @@
5858
"bugs": {
5959
"url": "https://github.com/Coder-Spirit/nominal/issues"
6060
},
61-
"homepage": "https://github.com/Coder-Spirit/nominal#readme"
61+
"homepage": "https://github.com/Coder-Spirit/nominal#readme",
62+
"publishConfig": {
63+
"provenance": true
64+
}
6265
}

@coderspirit/nominal-symbols/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,8 @@
5858
"bugs": {
5959
"url": "https://github.com/Coder-Spirit/nominal/issues"
6060
},
61-
"homepage": "https://github.com/Coder-Spirit/nominal#readme"
61+
"homepage": "https://github.com/Coder-Spirit/nominal#readme",
62+
"publishConfig": {
63+
"provenance": true
64+
}
6265
}

@coderspirit/nominal/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,8 @@
6060
"bugs": {
6161
"url": "https://github.com/Coder-Spirit/nominal/issues"
6262
},
63-
"homepage": "https://github.com/Coder-Spirit/nominal#readme"
63+
"homepage": "https://github.com/Coder-Spirit/nominal#readme",
64+
"publishConfig": {
65+
"provenance": true
66+
}
6467
}

@coderspirit/safe-env/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,8 @@
6161
"bugs": {
6262
"url": "https://github.com/Coder-Spirit/nominal/issues"
6363
},
64-
"homepage": "https://github.com/Coder-Spirit/nominal#readme"
64+
"homepage": "https://github.com/Coder-Spirit/nominal#readme",
65+
"publishConfig": {
66+
"provenance": true
67+
}
6568
}

deno.lock

Lines changed: 159 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

turbo.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@
9797
},
9898
"publish:safe": {
9999
"dependsOn": ["^publish:safe"],
100-
"cache": false
100+
"cache": false,
101+
"env": ["CI", "GITHUB_ACTIONS", "NODE_AUTH_TOKEN", "NPM_CONFIG_PROVENANCE"],
102+
"passThroughEnv": ["CI", "GITHUB_ACTIONS", "NODE_AUTH_TOKEN", "NPM_CONFIG_PROVENANCE"]
101103
},
102104
"test": {
103105
"dependsOn": ["build", "^test"],

0 commit comments

Comments
 (0)