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 cp from 'child_process'
|
||||||
import * as path from 'path'
|
import * as path from 'path'
|
||||||
import {readLocalizedReleaseNotes} from "../src/whatsnew";
|
import {readLocalizedReleaseNotes} from "../src/whatsnew";
|
||||||
import {androidpublisher_v3} from "googleapis";
|
import {androidpublisher_v3} from "@googleapis/androidpublisher";
|
||||||
import LocalizedText = androidpublisher_v3.Schema$LocalizedText;
|
import LocalizedText = androidpublisher_v3.Schema$LocalizedText;
|
||||||
|
|
||||||
test("read localized whatsnew files", async () => {
|
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",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@actions/core": "^1.2.6",
|
"@actions/core": "^1.2.6",
|
||||||
"fast-glob": "^3.2.5",
|
"@googleapis/androidpublisher": "^2.5.0",
|
||||||
"googleapis": "^68.0.0"
|
"fast-glob": "^3.2.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^26.0.22",
|
"@types/jest": "^28.1.1",
|
||||||
"@types/node": "^14.14.37",
|
"@types/node": "^17.0.43",
|
||||||
"@vercel/ncc": "^0.27.0",
|
"@vercel/ncc": "^0.34.0",
|
||||||
"jest": "^26.6.3",
|
"jest": "^28.1.1",
|
||||||
"jest-circus": "^26.6.3",
|
"ts-jest": "^28.0.5",
|
||||||
"ts-jest": "^26.5.4",
|
|
||||||
"typescript": "^4.2.3"
|
"typescript": "^4.2.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,8 +2,8 @@ import * as core from '@actions/core';
|
|||||||
import * as fs from "fs";
|
import * as fs from "fs";
|
||||||
import {readFileSync} from "fs";
|
import {readFileSync} from "fs";
|
||||||
|
|
||||||
import {google} from 'googleapis';
|
import * as google from '@googleapis/androidpublisher';
|
||||||
import {androidpublisher_v3} from "googleapis";
|
import {androidpublisher_v3} from "@googleapis/androidpublisher";
|
||||||
|
|
||||||
import AndroidPublisher = androidpublisher_v3.Androidpublisher;
|
import AndroidPublisher = androidpublisher_v3.Androidpublisher;
|
||||||
import AppEdit = androidpublisher_v3.Schema$AppEdit;
|
import AppEdit = androidpublisher_v3.Schema$AppEdit;
|
||||||
@@ -12,14 +12,13 @@ import Bundle = androidpublisher_v3.Schema$Bundle;
|
|||||||
import Track = androidpublisher_v3.Schema$Track;
|
import Track = androidpublisher_v3.Schema$Track;
|
||||||
import InternalAppSharingArtifact = androidpublisher_v3.Schema$InternalAppSharingArtifact;
|
import InternalAppSharingArtifact = androidpublisher_v3.Schema$InternalAppSharingArtifact;
|
||||||
import {Compute} from "google-auth-library/build/src/auth/computeclient";
|
import {Compute} from "google-auth-library/build/src/auth/computeclient";
|
||||||
import {JWT} from "google-auth-library/build/src/auth/jwtclient";
|
import {JSONClient} from "google-auth-library/build/src/auth/googleauth"
|
||||||
import {UserRefreshClient} from "google-auth-library/build/src/auth/refreshclient";
|
|
||||||
import {readLocalizedReleaseNotes} from "./whatsnew";
|
import {readLocalizedReleaseNotes} from "./whatsnew";
|
||||||
|
|
||||||
const androidPublisher: AndroidPublisher = google.androidpublisher('v3');
|
const androidPublisher: AndroidPublisher = google.androidpublisher('v3');
|
||||||
|
|
||||||
export interface EditOptions {
|
export interface EditOptions {
|
||||||
auth: Compute | JWT | UserRefreshClient;
|
auth: Compute | JSONClient;
|
||||||
applicationId: string;
|
applicationId: string;
|
||||||
track: string;
|
track: string;
|
||||||
inAppUpdatePriority: number;
|
inAppUpdatePriority: number;
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import * as core from '@actions/core';
|
import * as core from '@actions/core';
|
||||||
import * as fs from "fs";
|
import * as fs from "fs";
|
||||||
import fg from "fast-glob";
|
import fg from "fast-glob";
|
||||||
import { uploadToPlayStore } from "./edits";
|
import {uploadToPlayStore} from "./edits";
|
||||||
const {google} = require('googleapis');
|
import * as google from '@googleapis/androidpublisher';
|
||||||
|
|
||||||
const auth = new google.auth.GoogleAuth({
|
const auth = new google.auth.GoogleAuth({
|
||||||
scopes: ['https://www.googleapis.com/auth/androidpublisher']
|
scopes: ['https://www.googleapis.com/auth/androidpublisher']
|
||||||
@@ -120,8 +120,8 @@ async function run() {
|
|||||||
}, validatedReleaseFiles);
|
}, validatedReleaseFiles);
|
||||||
|
|
||||||
console.log(`Finished uploading to the Play Store: ${result}`)
|
console.log(`Finished uploading to the Play Store: ${result}`)
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
core.setFailed(error.message)
|
core.setFailed(error.toString())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ import * as core from '@actions/core';
|
|||||||
import * as fs from "fs";
|
import * as fs from "fs";
|
||||||
import * as path from "path";
|
import * as path from "path";
|
||||||
import {readFileSync} from "fs";
|
import {readFileSync} from "fs";
|
||||||
import {androidpublisher_v3} from "googleapis";
|
import {androidpublisher_v3} from "@googleapis/androidpublisher";
|
||||||
import LocalizedText = androidpublisher_v3.Schema$LocalizedText;
|
import LocalizedText = androidpublisher_v3.Schema$LocalizedText;
|
||||||
|
|
||||||
export async function readLocalizedReleaseNotes(whatsNewDir: string | undefined): Promise<LocalizedText[] | undefined> {
|
export async function readLocalizedReleaseNotes(whatsNewDir: string | undefined): Promise<LocalizedText[] | undefined> {
|
||||||
|
|||||||
Reference in New Issue
Block a user