It seems that we can't assume that images have `jq` built-in, therefore we will use `grep` which comes built-in with all UNIX systems to extract the latest CLI version number.
* Improve CLI installation script
- Add additional architectures for Linux.
- Stop the action if the runner is executed in an unsupported OS.
- Fetch automatically the latest stable CLI version.
* Switch to new syntax for setting step output.
GitHub has deprecated the syntax we were using for setting a step’s output (https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/). Therefore, we’re switching to the new one.
* Stop action if arch is unsupported for Linux runners.
Since we use matrices now for os and authentication type, we’ve optimized the yaml file to have only 3 jobs, each one making 3 separate piepeline tests (2 for service accounts, 1 for Connect)
* feat: update tsconfig, uninstall vercel/ncc package and use tsc to build project
* feat: install 1password/front-end-style and configure Prettier
* feat: configure ESLint and fix lint errors
* build(deps): update types/node package to latest version
* feat: configure Jest
* feat: add 'validate' script to run formatting/linting/testing/building all together
* build: rebuild the dist/index.js file
* feat: make NPM scripts more granular
* refactor: make it clearer that Prettier config is being loaded from an existing dependency
* feat: add Husky and lint-staged to run pre-commit and pre-push checks
* fix: lint-staged testing step and Jest config file
* build(deps): update types/node package to latest version
* refactor: remove findrelated test script
* fix: move tsconfig.json to root directory, reinstall vercel/ncc for building
* fix: call to run function in index.ts
* build: rebuild the dist/index.js file
* fix: replace CommonJS __dirname with an ESModule equivalent
* fix: ignore config/.husky during ShellCheck
* fix: ignore .husky directory during ShellCheck
* fix: update lint.yml config to match ShellCheck README.md
* fix: remove coveragePathIgnorePatterns option from Jest config since node_modules is already the default value
* refactor: use './' prefix to refer to folders in the current directory in tsconfig.json
* fix: handle edge case where Error constructor is modified and add comments for context
* feat: bump package.json version to 1.2.0 to match current release
* fix: update lint.yml to use ShellCheck 2.0.0 exact version
* build(deps): update types/node package to latest version
* fix: update package-lock.json version 1.2.0
* feat: remove pre-commit and pre-push NPM scripts to simplify package.json
* fix: remove empty 'Default' column from 'configure Action Inputs' table
* fix: change the default values in action.yml to strings as per YAML validation
Bring 2 changes that ensure that the GitHub Action is backwards compatible:
- Append `http://` if the prefix is not provided in the `OP_CONNECT_HOST` (this is caused by the fact that `curl` guesses the protocol if not provided (https://linux.die.net/man/1/curl), which we missed when switching to using the 1Password CLI as the backend of the action)
- Set the default of export-env to true, since that was the default behavior of the action until we added the possibility to export secrets as step's output.
Also, the documentation is adjusted to reflect these changes.