Skip to content

Commit d8024ed

Browse files
build: publish with OIDC connect
1 parent a0aca6f commit d8024ed

File tree

4 files changed

+24
-5
lines changed

4 files changed

+24
-5
lines changed

.github/setup/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ runs:
2121
with:
2222
node-version: ${{ inputs.node-version }}
2323
cache: 'npm'
24+
registry-url: 'https://registry.npmjs.org'
2425
- uses: actions/setup-java@v5
2526
if: ${{ inputs.setup-java == 'true' }}
2627
with:

.github/workflows/release.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ jobs:
1919
setup-java: true
2020
- name: Set Release Env
2121
run: |
22-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
2322
echo ${{ secrets.PGP_SECRET }} | base64 --decode | gpg --batch --import
2423
- run: npx nx run-many --target=build
2524
- name: Release
@@ -28,4 +27,3 @@ jobs:
2827
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
2928
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
3029
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
31-
NPM_CONFIG_PROVENANCE: true

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ test-results/
2525
playwright-report/
2626
blob-report/
2727
playwright/.cache/
28+
.cursor/rules/nx-rules.mdc
29+
.github/instructions/nx.instructions.md

nx.json

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,13 @@
22
"$schema": "https://raw.githubusercontent.com/nrwl/nx/master/packages/nx/schemas/nx-schema.json",
33
"extends": "nx/presets/npm.json",
44
"namedInputs": {
5-
"default": ["{projectRoot}/**/*", "{workspaceRoot}/package-lock.json", { "runtime": "node -v" }],
5+
"default": [
6+
"{projectRoot}/**/*",
7+
"{workspaceRoot}/package-lock.json",
8+
{
9+
"runtime": "node -v"
10+
}
11+
],
612
"production": ["!{projectRoot}/test/**/*", "!{projectRoot}/eslint.config.js", "!{projectRoot}/stryker.conf.js"]
713
},
814
"targetDefaults": {
@@ -19,7 +25,13 @@
1925
"cache": true
2026
},
2127
"generate": {
22-
"inputs": ["{projectRoot}/src/*.json", "{workspaceRoot}/tasks/schema2ts.mjs", { "externalDependencies": ["json-schema-to-typescript"] }],
28+
"inputs": [
29+
"{projectRoot}/src/*.json",
30+
"{workspaceRoot}/tasks/schema2ts.mjs",
31+
{
32+
"externalDependencies": ["json-schema-to-typescript"]
33+
}
34+
],
2335
"outputs": ["{projectRoot}/src-generated"],
2436
"cache": true
2537
},
@@ -29,7 +41,13 @@
2941
"cache": true
3042
},
3143
"stryker": {
32-
"inputs": ["default", "^production", { "env": "GITHUB_REF" }],
44+
"inputs": [
45+
"default",
46+
"^production",
47+
{
48+
"env": "GITHUB_REF"
49+
}
50+
],
3351
"dependsOn": ["generate", "root:build:tsc", "^build"],
3452
"outputs": ["{projectRoot}/reports", "{projectRoot}/target/stryker4s-report-*/"],
3553
"cache": true

0 commit comments

Comments
 (0)