* chore(action): Rework action to be a composite action - Removed docker image and workflow around it - Externalizing `@sentry/cli` so it can be installed per-runner - Support versioning of actions publishing major, minor and patch tags allowing users to pin versions - Reduce action run time by 80% as a result Closes: #185, #193, #233 * Fix path * Add @sentry/cli as dev dep so we can build locally but have it overwritten on the CI by the install step * Improve changelog * Update .github/workflows/test.yml Co-authored-by: Francesco Gringl-Novy <[email protected]> * Remove caching of yarn cache * Remove volta in action itself * Remove fetch depths for ci tests * Pin @sentry/cli to ~2.4 * Change to `^2.4` * Read out workspace path directly in action * Add comment * Run lint and format * Add lint step to test.yml * Simplify workingDirectory checks --------- Co-authored-by: Francesco Gringl-Novy <[email protected]>
15 lines
338 B
Bash
15 lines
338 B
Bash
#!/bin/bash
|
|
set -eux
|
|
|
|
OLD_VERSION="${1}"
|
|
NEW_VERSION="${2}"
|
|
|
|
# Move to the project root
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
cd $SCRIPT_DIR/..
|
|
|
|
# Bump the npm version without creating a git tag for it
|
|
# as craft/publish will take care of that
|
|
export npm_config_git_tag_version=false
|
|
npm version "${NEW_VERSION}"
|