diff --git a/.github/workflows/push-master.yml b/.github/workflows/push-master.yml index c14685c9a5..998b9228d2 100644 --- a/.github/workflows/push-master.yml +++ b/.github/workflows/push-master.yml @@ -15,14 +15,14 @@ jobs: env: YARN_ENABLE_SCRIPTS: false CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} - GH_PAT: ${{ secrets.GH_PAT }} - GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT }} + GH_PAT: ${{ secrets.GH_PAT_BOT }} + GH_RELEASE_GITHUB_API_TOKEN: ${{ secrets.GH_PAT_BOT }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} steps: - uses: actions/checkout@7884fcad6b5d53d10323aee724dc68d8b9096a2e with: fetch-depth: 0 - token: ${{ secrets.GH_PAT }} + token: ${{ secrets.GH_PAT_BOT }} - name: ${{ matrix.step }} run: | yarn install --immutable | grep -v 'YN0013' diff --git a/packages/types-codec/src/native/Json.ts b/packages/types-codec/src/native/Json.ts index 67fa8665b5..29c682b652 100644 --- a/packages/types-codec/src/native/Json.ts +++ b/packages/types-codec/src/native/Json.ts @@ -114,7 +114,7 @@ export class Json extends Map implements Codec { */ public toPrimitive (): Record { return [...this.entries()].reduce>((json, [key, value]): Record => { - json[key] = isFunction((value as Codec).toHuman) + json[key] = isFunction((value as Codec).toPrimitive) ? (value as Codec).toPrimitive() : value as AnyJson;