160 Commits

Author SHA1 Message Date
Jack Boswell
935ef9c68b Update dependencies & target node20 (#212)
* Update dependencies & target Node 20

* Bump version
v1 v1.1.3
2024-02-10 00:01:23 +13:00
dependabot[bot]
84ffa89623 Bump tj-actions/verify-changed-files in /.github/workflows (#206)
Bumps [tj-actions/verify-changed-files](https://github.com/tj-actions/verify-changed-files) from 9.2 to 17.
- [Release notes](https://github.com/tj-actions/verify-changed-files/releases)
- [Changelog](https://github.com/tj-actions/verify-changed-files/blob/main/HISTORY.md)
- [Commits](https://github.com/tj-actions/verify-changed-files/compare/v9.2...v17)

---
updated-dependencies:
- dependency-name: tj-actions/verify-changed-files
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-03 11:18:09 +13:00
Emil Tabakov
b6837fa35c Add instructions to configure service account in README (#201) 2023-11-13 22:57:13 +13:00
dependabot[bot]
7c9dfbb03e Bump @babel/traverse from 7.19.6 to 7.23.2 (#198)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.19.6 to 7.23.2.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-19 11:57:55 +13:00
Jack Boswell
9cf8fd30c9 Update documentation to link to Google's track name information (#191) v1.1.2 2023-09-19 16:44:00 +12:00
Jack Boswell
101c2cddf9 Update all dependencies and bump version (#192) 2023-09-19 16:43:48 +12:00
dependabot[bot]
d17e3fc745 Bump word-wrap from 1.2.3 to 1.2.4 (#184)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-19 10:14:15 +12:00
Jack Boswell
70c7397e86 Fix deprecated releaseFile input not being considered (#174) v1.1.1 2023-02-11 12:10:44 +13:00
Jack Boswell
853233422d Fix a bug where our new timeout caused the action to stay "alive" (#173) 2023-02-11 12:06:30 +13:00
Jack Boswell
9a5e7fcdd5 Add an upload timeout of 60 minutes (#171)
* Add an upload timeout of 60 minutes

* Remove now defunct tests
v1.1.0
2023-02-10 22:59:20 +13:00
Sindre Moen
02c72d76fe Remove status default from README (#164)
* Remove status default from README

* Default status to `completed`
2023-02-10 22:00:07 +13:00
Shi Chen
cd131e853c feature: Add support for App Bundle Explorer's Internal app sharing link. (#166)
Updated json5 dependency to patch vulnerability.
2023-01-13 16:55:12 +13:00
Saalihou Ndiaye
8a353d6e46 Add doc about packageName needing to exist first (#168) 2023-01-13 15:31:31 +13:00
dependabot[bot]
d5cf6e9445 Bump json5 from 2.2.1 to 2.2.3 (#167)
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-01-13 15:25:47 +13:00
Ivan Milisavljevic
b9dc4464a6 Dont fail the action if optional files are not present on the dics (#162) 2022-12-07 15:19:47 +13:00
Keisuke Yamaguchi
974d2d7566 Update userFraction reuqired to false in README (#157)
* Update userFraction reuqired to false

* Update userFraction to exclusive-exclusive and delete default value
2022-11-23 17:13:43 +13:00
Jack Boswell
536f822b60 Update release workflow (#155) 2022-11-03 19:22:11 +13:00
Jack Boswell
d7e6e42414 fix: Bring back the default release status (#154)
* Bring back the default release status

* Create a test for the bare minimum inputs
2022-11-03 19:11:20 +13:00
Jack Boswell (boswelja)
78c9e796b1 Update dependencies + prepare for release v1.0.19 2022-10-24 08:17:46 +00:00
Jack Boswell
980a5c4201 Write edit expiry time to debug console (#152) 2022-10-24 21:11:26 +13:00
Jack Boswell
81a2f1ad1c Print track names when invalid track provided (#151)
* Print track names when invalid track provided

* Remove redundant safe call
2022-10-24 21:06:38 +13:00
Jack Boswell
b84eace68d Set up full input testing (#150)
* Extract main loop to something testable

* Revert "Extract main loop to something testable"

This reverts commit 35a78459698fe267933c554283212c2d06ed4bf0.

* Extract code that interacts with Google Play
We can now test our input flow as a whole

* Create some basic tests for `completed` status publishing

* Fix applying inputs
We don't want to be keeping values between runs

* Drop some redundant tests

* Create basic tests for draft rollout

* Run build

* Fix userFraction bug

* Improve readability of initialising inputs

* Fix runUpload mocking

* Migrate to github-action-ts-run-api
2022-10-24 14:18:11 +13:00
Jack Boswell (boswelja)
4d510d380a Attempt at fixing status validation
Our validation tests are A-OK, but inputs are not :(
2022-09-26 15:37:05 +13:00
Jack Boswell
99b7a1e1d4 Fix issues parsing Int and Float (#145)
Undefined was transformed into NaN, which is not undefined and thus failed validation
2022-09-24 16:51:04 +12:00
Jack Boswell
7cd1379b4f refactor: Centralized input validation (#142)
* Initial implementaion of service account json, user fraction and status validation

* Move validation to input-validation
Also created some more validators

* Rearrange whatsnew tests to clear out test folder

* Return error messages for input validation

* Create tests for some validation code

* Separate user fraction and status validation

* Write more tests and fix some bugs

* Refactor to use promises

* Fix release file loading from glob
2022-09-21 17:15:54 +12:00
Jack Boswell
b028ed83b3 Set up ESLint (#138)
* Add eslint and config

* Refactor edits.ts to comply with eslint

* Refactor whatsnew.ts to comply with eslint

* Fix final ESLint issues

* Run build
2022-09-12 20:37:51 +12:00
Jack Boswell
5427bcbe2b Ignore userFraction if status is draft (#140) 2022-09-12 20:23:41 +12:00
Thomas Aunvik
6a74f079de Add Debug Symbol File/Folder Upload (#130)
* Add Debug Symbol File/Folder Upload

Uploads Deobfuscation File type 'nativeCode'.

Inputs allowed in 'debugSymbols', a .zip file, or a folder that contains the symbols.

* Space Formatting

* Zip Directory Function higher level, and formatting
2022-09-12 00:21:02 +12:00
Jack Boswell
c16321c553 feature: Infer status from provided parameters (#122)
* Mark status as deprecated

* Make userFraction required & provide a default
We'll use this to infer `inProgress` or `completed`

* Infer status from userFraction

* Fix workflow

* Update README

* Run build

* Add support for drafts again

* Pass in isDraft

* Warn about setting draft and userFraction simultaneously

* Expose isDraft

* Do a build

* Allow passing status in again
This will be required for draft/halted
It is optional though, if it's not specified, we have updated logic for inferring it

* Update userFraction description

* Revert "Fix workflow"

This reverts commit ad98b3d449f0f36c9d4f0a3d0b2eb49a4c3e1aa9.

* Remove deprecated tag from status

* Move status back

* Allow 0 userFraction

* Run build
2022-09-11 20:53:18 +12:00
Jack Boswell
7406d2c7a1 Update deps (#137) v1.0.18 2022-09-11 19:51:48 +12:00
Jack Boswell
623184c55d Validate library is up to date in workflow (#121) 2022-06-20 21:17:01 +12:00
Jack Boswell
91c8f42cf7 feature: Allow editing existing Edits (#120)
* Only take edit ID for track validation

* Only take edit ID for adding releases

* Only take edit ID for mapping file upload

* Only take edit ID for uploading artifacts

* Only use app edit ID for uploading releases

* Rebuild

* Allow passing in an existing edit ID

* Expose existingEditId

* Run build
2022-06-20 20:59:52 +12:00
Jack Boswell
e00bb8ce1e feature: Add support for changesNotSentForReview (#117)
Credits to @princefr for the original implementation
2022-06-18 19:50:39 +12:00
Jack Boswell (boswelja)
7f42989517 Ensure deps are up to date and do a build v1.0.17 2022-06-18 18:57:34 +12:00
Jack Boswell (boswelja)
6fefbe4681 Prep for release 2022-06-18 18:54:49 +12:00
Jack Boswell
f1479e715c Chore: Update readme (#115)
* Update README formatting

* Sort inputs by required

* Sort track values by priority

* Table-ify inputs in README

* Table-ify outputs too

* Bring back the `whatsNewDirectory` example
2022-06-18 18:52:48 +12:00
Jack Boswell
7b7381ed55 Added cleanup to generated service account file (#116)
Co-authored-by: Drew Heavner <veedubusc@gmail.com>
2022-06-18 18:32:34 +12:00
Jack Boswell
642ba59b8a Create pr-validation.yml (#114) 2022-06-15 17:30:19 +12:00
Jack Boswell
dd8dcab872 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
2022-06-15 17:13:36 +12:00
dependabot[bot]
cf500ad293 Bump tmpl from 1.0.4 to 1.0.5 (#110)
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-15 13:53:24 +12:00
dependabot[bot]
354ae8f121 Bump ansi-regex from 5.0.0 to 5.0.1 (#107)
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v5.0.0...v5.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-15 13:52:46 +12:00
dependabot[bot]
b36eb787b2 Bump node-fetch from 2.6.1 to 2.6.7 (#108)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-15 13:52:27 +12:00
dependabot[bot]
c23d6291fa Bump lodash from 4.17.20 to 4.17.21 (#106)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.20 to 4.17.21.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.20...4.17.21)

---
updated-dependencies:
- dependency-name: lodash
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-15 13:52:13 +12:00
dependabot[bot]
8eb5399590 Bump minimist from 1.2.5 to 1.2.6 (#99)
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-15 13:51:01 +12:00
Tobias Schürg
51e4495788 docs: add status property to examples (#94) 2022-06-14 20:09:37 -04:00
Doug Keen
15ee0081ab fix: default behavior when status is unspecified (#80) (#87) 2022-06-14 20:03:26 -04:00
Pablo A Martínez Andrés
8c2ebfdb6e Fix: Support BCP 47 language codes without contry code (#73)
* Updated regex to support BCP 47 language codes without country code

* Updated whatsnew tests

Co-authored-by: Pablo A. Martínez <pamartinez@boiradev.com>
v1.0.16
2021-09-21 12:26:56 -04:00
Doug Keen
060a2efa0e feat: Add support for explicitly specifying release status (#78) 2021-09-21 10:57:13 -04:00
Drew Heavner
9745ef904e Merge pull request #66 from boswelja/update-deps
Update dependencies
v1.0.15
2021-04-01 19:10:50 -04:00
Jack Boswell (boswelja)
f4405077a3 Update types and run audit to fix high severity vulnerability 2021-03-30 19:38:15 +13:00