Skip to content

Commit 5728f1a

Browse files
authored
Merge pull request #275 from ringcentral/setup_oidc
prepare for oidc
2 parents dc0902e + 4a9c6da commit 5728f1a

37 files changed

Lines changed: 239 additions & 83 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,25 @@ jobs:
1313
runs-on: ubuntu-latest
1414
permissions:
1515
contents: write
16+
id-token: write
1617
steps:
17-
- uses: actions/checkout@v3
18-
- uses: actions/setup-node@v3
18+
- uses: actions/checkout@v6
19+
- uses: actions/setup-node@v6
1920
with:
2021
node-version: '22.x'
2122
registry-url: 'https://registry.npmjs.org'
23+
package-manager-cache: false
2224

2325
- name: Config git user
2426
run: |
2527
git config --global user.name "${{ github.actor }}"
2628
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
2729
30+
- run: npm install -g npm@^11.10.0
2831
- run: npm ci
2932
- run: npm run build:main
3033
- run: npm run publish:version ${{ github.event.inputs.version }}
31-
- run: npm run publish:ci
34+
- name: Publish to npm
35+
run: npm run publish:ci
3236
env:
33-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3537
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

core/api/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
"types": "./src/index.ts",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/ringcentral/testring.git"
8+
"url": "https://github.com/ringcentral/testring.git",
9+
"directory": "core/api"
10+
},
11+
"publishConfig": {
12+
"access": "public"
913
},
1014
"scripts": {
1115
"build": "tsc -p tsconfig.build.json"

core/async-assert/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@
1212
"types": "./src/index.ts",
1313
"repository": {
1414
"type": "git",
15-
"url": "git+https://github.com/ringcentral/testring.git"
15+
"url": "https://github.com/ringcentral/testring.git",
16+
"directory": "core/async-assert"
17+
},
18+
"publishConfig": {
19+
"access": "public"
1620
},
1721
"scripts": {
1822
"test": "echo \"Error: run tests from root\" && exit 1",

core/async-breakpoints/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
"types": "./src/index.ts",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/ringcentral/testring.git"
8+
"url": "https://github.com/ringcentral/testring.git",
9+
"directory": "core/async-breakpoints"
10+
},
11+
"publishConfig": {
12+
"access": "public"
913
},
1014
"scripts": {
1115
"build": "tsc -p tsconfig.build.json"

core/child-process/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
"types": "./src/index.ts",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/ringcentral/testring.git"
8+
"url": "https://github.com/ringcentral/testring.git",
9+
"directory": "core/child-process"
10+
},
11+
"publishConfig": {
12+
"access": "public"
913
},
1014
"dependencies": {
1115
"@testring/types": "0.8.10",

core/cli-config/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
"types": "./src/index.ts",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/ringcentral/testring.git"
8+
"url": "https://github.com/ringcentral/testring.git",
9+
"directory": "core/cli-config"
10+
},
11+
"publishConfig": {
12+
"access": "public"
913
},
1014
"scripts": {
1115
"build": "tsc -p tsconfig.build.json"

core/cli/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
"types": "./src/index.ts",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/ringcentral/testring.git"
8+
"url": "https://github.com/ringcentral/testring.git",
9+
"directory": "core/cli"
10+
},
11+
"publishConfig": {
12+
"access": "public"
913
},
1014
"scripts": {
1115
"build": "tsc -p tsconfig.build.json"

core/dependencies-builder/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
"types": "./src/index.ts",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/ringcentral/testring.git"
8+
"url": "https://github.com/ringcentral/testring.git",
9+
"directory": "core/dependencies-builder"
10+
},
11+
"publishConfig": {
12+
"access": "public"
913
},
1014
"scripts": {
1115
"build": "tsc -p tsconfig.build.json"

core/fs-reader/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@
55
"types": "./src/index.ts",
66
"repository": {
77
"type": "git",
8-
"url": "https://github.com/ringcentral/testring.git"
8+
"url": "https://github.com/ringcentral/testring.git",
9+
"directory": "core/fs-reader"
10+
},
11+
"publishConfig": {
12+
"access": "public"
913
},
1014
"author": "RingCentral",
1115
"license": "MIT",

core/fs-store/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@
1010
"types": "./src/index.ts",
1111
"repository": {
1212
"type": "git",
13-
"url": "https://github.com/ringcentral/testring.git"
13+
"url": "https://github.com/ringcentral/testring.git",
14+
"directory": "core/fs-store"
15+
},
16+
"publishConfig": {
17+
"access": "public"
1418
},
1519
"author": "RingCentral",
1620
"license": "MIT",

0 commit comments

Comments
 (0)