Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(deps): bump @octokit/rest from 20.1.1 to 21.1.0 #15

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
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
2 changes: 1 addition & 1 deletion __tests__/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit tests for the action's entrypoint, src/index.ts
*/

import * as main from '../src/main'
import * as main from '../src/main.js'

Check failure on line 5 in __tests__/index.test.ts

View workflow job for this annotation

GitHub Actions / TypeScript Tests

Unable to resolve path to module '../src/main.js'

// Mock the action's entrypoint
const runMock = jest.spyOn(main, 'run').mockImplementation()
Expand Down
51,069 changes: 25,331 additions & 25,738 deletions dist/index.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions dist/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2,889 changes: 1,784 additions & 1,105 deletions package-lock.json

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.0.0",
"author": "",
"private": true,
"type": "module",
"description": "GitHub Action to set up the Humanitec CLI",
"homepage": "https://github.com/humanitec/setup-cli-action",
"repository": {
Expand Down Expand Up @@ -51,7 +52,7 @@
"dependencies": {
"@actions/core": "^1.11.1",
"@actions/tool-cache": "^2.0.1",
"@octokit/rest": "^20.1.1",
"@octokit/rest": "^21.1.0",
"semver": "^7.6.2"
},
"devDependencies": {
Expand All @@ -71,4 +72,4 @@
"ts-jest": "^29.2.5",
"typescript": "^5.7.3"
}
}
}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* The entrypoint for the action.
*/
import { run } from './main'
import { run } from './main.js'

Check failure on line 4 in src/index.ts

View workflow job for this annotation

GitHub Actions / TypeScript Tests

Unable to resolve path to module './main.js'

// eslint-disable-next-line @typescript-eslint/no-floating-promises
run()
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import os from 'os'
import * as core from '@actions/core'
import * as tc from '@actions/tool-cache'
import { Octokit } from '@octokit/rest'

Check failure on line 4 in src/main.ts

View workflow job for this annotation

GitHub Actions / TypeScript Tests

Unable to resolve path to module '@octokit/rest'
import * as semver from 'semver'
import { isSpecificRange } from './semver'
import { isSpecificRange } from './semver.js'

Check failure on line 6 in src/main.ts

View workflow job for this annotation

GitHub Actions / TypeScript Tests

Unable to resolve path to module './semver.js'

// arch in [arm, x32, x64...] (https://nodejs.org/api/os.html#os_os_arch)
// return value in [amd64, 386, arm]
Expand Down
2 changes: 1 addition & 1 deletion src/semver.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { describe, expect, test } from '@jest/globals'

import { isSpecificRange } from './semver'
import { isSpecificRange } from './semver.js'

Check failure on line 3 in src/semver.test.ts

View workflow job for this annotation

GitHub Actions / TypeScript Tests

Unable to resolve path to module './semver.js'

describe('semver', () => {
for (const version of ['1.0.0', '0.11.0', '0.0.1']) {
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"$schema": "https://json.schemastore.org/tsconfig",
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"module": "ESNext",
"rootDir": "./src",
"moduleResolution": "NodeNext",
"moduleResolution": "node",
"baseUrl": "./",
"sourceMap": true,
"outDir": "./dist",
Expand Down
Loading