Skip to content

Commit bb06c15

Browse files
Revert "feat: leverage the heroku credential manager for auth" (#292)
1 parent de1bf43 commit bb06c15

File tree

13 files changed

+1589
-1917
lines changed

13 files changed

+1589
-1917
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@ jobs:
1111
uses: actions/setup-node@v6
1212
with:
1313
node-version: 22.x
14-
registry-url: https://registry.npmjs.org
1514
cache: npm
1615
- run: npm ci
17-
env:
18-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_HEROKU_CREDENTIAL_MANAGER }}
1916
- name: linting
2017
run: npm run lint
2118

@@ -31,11 +28,7 @@ jobs:
3128
uses: actions/setup-node@v6
3229
with:
3330
node-version: ${{ matrix.node-version }}
34-
registry-url: https://registry.npmjs.org
35-
cache: npm
3631
- run: npm ci
37-
env:
38-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_HEROKU_CREDENTIAL_MANAGER }}
3932
- name: unit tests
4033
run: npm test
4134
- name: linting

examples/whoami.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class StatusCommand extends Command {
1010

1111
async run() {
1212
if (process.env.HEROKU_API_KEY) this.warn('HEROKU_API_KEY is set')
13-
if (!(await this.heroku.getAuth())) this.notloggedin()
13+
if (!this.heroku.auth) this.notloggedin()
1414
try {
1515
const {body: account} = await this.heroku.get<Heroku.Account>('/account', {retryAuth: false})
1616
ux.stdout(account.email)

0 commit comments

Comments
 (0)