Chore: Update dependencies (#113)
* Bump minor versions * Fix error not having a type * Remove jest-circus * Bump ncc * Remove ts-jest * Drop googleapis for androidpublisher in particular Way smaller compiled size, and way shorter compile time * Bump jest * Bring back ts-jest * Bump @types/node
This commit is contained in:
@@ -2,7 +2,7 @@ import * as process from 'process'
|
||||
import * as cp from 'child_process'
|
||||
import * as path from 'path'
|
||||
import {readLocalizedReleaseNotes} from "../src/whatsnew";
|
||||
import {androidpublisher_v3} from "googleapis";
|
||||
import {androidpublisher_v3} from "@googleapis/androidpublisher";
|
||||
import LocalizedText = androidpublisher_v3.Schema$LocalizedText;
|
||||
|
||||
test("read localized whatsnew files", async () => {
|
||||
|
||||
41
lib/index.js
41
lib/index.js
File diff suppressed because one or more lines are too long
13489
package-lock.json
generated
13489
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
15
package.json
15
package.json
@@ -21,16 +21,15 @@
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@actions/core": "^1.2.6",
|
||||
"fast-glob": "^3.2.5",
|
||||
"googleapis": "^68.0.0"
|
||||
"@googleapis/androidpublisher": "^2.5.0",
|
||||
"fast-glob": "^3.2.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/jest": "^26.0.22",
|
||||
"@types/node": "^14.14.37",
|
||||
"@vercel/ncc": "^0.27.0",
|
||||
"jest": "^26.6.3",
|
||||
"jest-circus": "^26.6.3",
|
||||
"ts-jest": "^26.5.4",
|
||||
"@types/jest": "^28.1.1",
|
||||
"@types/node": "^17.0.43",
|
||||
"@vercel/ncc": "^0.34.0",
|
||||
"jest": "^28.1.1",
|
||||
"ts-jest": "^28.0.5",
|
||||
"typescript": "^4.2.3"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,8 +2,8 @@ import * as core from '@actions/core';
|
||||
import * as fs from "fs";
|
||||
import {readFileSync} from "fs";
|
||||
|
||||
import {google} from 'googleapis';
|
||||
import {androidpublisher_v3} from "googleapis";
|
||||
import * as google from '@googleapis/androidpublisher';
|
||||
import {androidpublisher_v3} from "@googleapis/androidpublisher";
|
||||
|
||||
import AndroidPublisher = androidpublisher_v3.Androidpublisher;
|
||||
import AppEdit = androidpublisher_v3.Schema$AppEdit;
|
||||
@@ -12,14 +12,13 @@ import Bundle = androidpublisher_v3.Schema$Bundle;
|
||||
import Track = androidpublisher_v3.Schema$Track;
|
||||
import InternalAppSharingArtifact = androidpublisher_v3.Schema$InternalAppSharingArtifact;
|
||||
import {Compute} from "google-auth-library/build/src/auth/computeclient";
|
||||
import {JWT} from "google-auth-library/build/src/auth/jwtclient";
|
||||
import {UserRefreshClient} from "google-auth-library/build/src/auth/refreshclient";
|
||||
import {JSONClient} from "google-auth-library/build/src/auth/googleauth"
|
||||
import {readLocalizedReleaseNotes} from "./whatsnew";
|
||||
|
||||
const androidPublisher: AndroidPublisher = google.androidpublisher('v3');
|
||||
|
||||
export interface EditOptions {
|
||||
auth: Compute | JWT | UserRefreshClient;
|
||||
auth: Compute | JSONClient;
|
||||
applicationId: string;
|
||||
track: string;
|
||||
inAppUpdatePriority: number;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import * as core from '@actions/core';
|
||||
import * as fs from "fs";
|
||||
import fg from "fast-glob";
|
||||
import { uploadToPlayStore } from "./edits";
|
||||
const {google} = require('googleapis');
|
||||
import {uploadToPlayStore} from "./edits";
|
||||
import * as google from '@googleapis/androidpublisher';
|
||||
|
||||
const auth = new google.auth.GoogleAuth({
|
||||
scopes: ['https://www.googleapis.com/auth/androidpublisher']
|
||||
@@ -120,8 +120,8 @@ async function run() {
|
||||
}, validatedReleaseFiles);
|
||||
|
||||
console.log(`Finished uploading to the Play Store: ${result}`)
|
||||
} catch (error) {
|
||||
core.setFailed(error.message)
|
||||
} catch (error: any) {
|
||||
core.setFailed(error.toString())
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ import * as core from '@actions/core';
|
||||
import * as fs from "fs";
|
||||
import * as path from "path";
|
||||
import {readFileSync} from "fs";
|
||||
import {androidpublisher_v3} from "googleapis";
|
||||
import {androidpublisher_v3} from "@googleapis/androidpublisher";
|
||||
import LocalizedText = androidpublisher_v3.Schema$LocalizedText;
|
||||
|
||||
export async function readLocalizedReleaseNotes(whatsNewDir: string | undefined): Promise<LocalizedText[] | undefined> {
|
||||
|
||||
Reference in New Issue
Block a user