Uploaded image for project: 'Realm Studio'
  1. Realm Studio
  2. RSTUDIO-40

Update scripts/github-releases.js to use "auth" constructor

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None

      When running the `scripts/github-releases.js` on CI, we get deprecation warnings related to the way we authenticate.

      Stacktrace of the warning

      Error: octokit.authenticate() is deprecated. Use "auth" constructor option instead.
          at authenticate (/Users/realm/workspace/realm_realm-studio_master-J6UDUV2FZK4ZOZI2PNFEVQAEP6EWKCZOEBEB3QBMK7VKIRSSKKMA/node_modules/@octokit/rest/plugins/authentication-deprecated/authenticate.js:4:26)
          at Object.<anonymous> (/Users/realm/workspace/realm_realm-studio_master-J6UDUV2FZK4ZOZI2PNFEVQAEP6EWKCZOEBEB3QBMK7VKIRSSKKMA/scripts/github-releases.js:20:9)
          at Module._compile (internal/modules/cjs/loader.js:689:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
          at Module.load (internal/modules/cjs/loader.js:599:32)
          at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
          at Function.Module._load (internal/modules/cjs/loader.js:530:3)
          at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
          at startup (internal/bootstrap/node.js:283:19)
          at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: