Skip to content

Commit

Permalink
Switch to setup-node@v4, clean up warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
eablack committed Aug 27, 2024
1 parent ba899f2 commit edbf30a
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
Expand All @@ -36,7 +36,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
Expand All @@ -59,7 +59,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
Expand All @@ -84,7 +84,7 @@ jobs:
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn add [email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/promote-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/promote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-fig-autocomplete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20.x
- run: yarn --immutable --network-timeout 1000000
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/start-prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
TAG_NAME: ${{ format('v{0}', needs.get-version-channel.outputs.version) }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: set git user
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tag-create-github-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
ssh-private-key: ${{ secrets.SSH_RELEASE_PRIVATE_KEY }}
- name: Use Node.js 20.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: yarn
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-installed-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/access/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default class AccessIndex extends Command {
}

public async run(): Promise<void> {
const {flags, argv, args} = await this.parse(AccessIndex)
const {flags} = await this.parse(AccessIndex)
const {app: appName, json} = flags
const {body: app} = await this.heroku.get<Heroku.App>(`/apps/${appName}`)
let {body: collaborators} = await this.heroku.get<Heroku.TeamAppCollaborator[]>(`/apps/${appName}/collaborators`)
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/buildpacks/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default class Info extends Command {
const registry = new BuildpackRegistry()

Result.match({
Ok: _ => {},
Ok: () => {},
Err: err => {
this.error(`Could not publish the buildpack.\n${err}`)
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/buildpacks/versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class Versions extends Command {
const registry = new BuildpackRegistry()

Result.match({
Ok: _ => {},
Ok: () => {},
Err: err => {
this.error(`Could not find the buildpack.\n${err}`)
},
Expand Down

0 comments on commit edbf30a

Please sign in to comment.