Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: 22.x
registry-url: https://registry.npmjs.org
cache: npm
- run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_HEROKU_CREDENTIAL_MANAGER }}
- name: linting
run: npm run lint

Expand All @@ -28,7 +31,11 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
cache: npm
- run: npm ci
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_HEROKU_CREDENTIAL_MANAGER }}
- name: unit tests
run: npm test
- name: linting
Expand Down
2 changes: 1 addition & 1 deletion examples/whoami.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

async run() {
if (process.env.HEROKU_API_KEY) this.warn('HEROKU_API_KEY is set')
if (!this.heroku.auth) this.notloggedin()
if (!(await this.heroku.getAuth())) this.notloggedin()
try {
const {body: account} = await this.heroku.get<Heroku.Account>('/account', {retryAuth: false})
ux.stdout(account.email)
Expand All @@ -22,5 +22,5 @@
}

(StatusCommand.run([]) as any)
.catch(Errors.handle)

Check warning on line 25 in examples/whoami.ts

View workflow job for this annotation

GitHub Actions / lint

Prefer top-level await over using a promise chain

Check warning on line 25 in examples/whoami.ts

View workflow job for this annotation

GitHub Actions / lint

Expected indentation of 0 spaces but found 2

Check warning on line 25 in examples/whoami.ts

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 22.x)

Prefer top-level await over using a promise chain

Check warning on line 25 in examples/whoami.ts

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 22.x)

Expected indentation of 0 spaces but found 2

Check warning on line 25 in examples/whoami.ts

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 20.x)

Prefer top-level await over using a promise chain

Check warning on line 25 in examples/whoami.ts

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 20.x)

Expected indentation of 0 spaces but found 2

Check warning on line 25 in examples/whoami.ts

View workflow job for this annotation

GitHub Actions / test (macos-latest, 20.x)

Prefer top-level await over using a promise chain

Check warning on line 25 in examples/whoami.ts

View workflow job for this annotation

GitHub Actions / test (macos-latest, 20.x)

Expected indentation of 0 spaces but found 2

Check warning on line 25 in examples/whoami.ts

View workflow job for this annotation

GitHub Actions / test (macos-latest, 22.x)

Prefer top-level await over using a promise chain

Check warning on line 25 in examples/whoami.ts

View workflow job for this annotation

GitHub Actions / test (macos-latest, 22.x)

Expected indentation of 0 spaces but found 2

Check warning on line 25 in examples/whoami.ts

View workflow job for this annotation

GitHub Actions / test (windows-latest, 20.x)

Prefer top-level await over using a promise chain

Check warning on line 25 in examples/whoami.ts

View workflow job for this annotation

GitHub Actions / test (windows-latest, 20.x)

Expected indentation of 0 spaces but found 2

Check warning on line 25 in examples/whoami.ts

View workflow job for this annotation

GitHub Actions / test (windows-latest, 22.x)

Prefer top-level await over using a promise chain

Check warning on line 25 in examples/whoami.ts

View workflow job for this annotation

GitHub Actions / test (windows-latest, 22.x)

Expected indentation of 0 spaces but found 2

Loading
Loading