From 0bf7c78491740a1f004a0b2bfd5e5af3edec7a40 Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Thu, 23 Nov 2023 14:01:45 +0100 Subject: [PATCH] Craft --- .craft.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/build.yml | 2 +- scripts/bump-version.sh | 6 ++++++ 3 files changed, 35 insertions(+), 1 deletion(-) diff --git a/.craft.yml b/.craft.yml index 40c36f3e15..05438ed2f3 100644 --- a/.craft.yml +++ b/.craft.yml @@ -11,7 +11,35 @@ targets: - path: /sentry-cli/latest/ metadata: cacheControl: public, max-age=600 + + # Main Sentry CLI package - name: npm + id: '@sentry/cli' + includeNames: /^sentry-cli-\d.*\.tgz$/ + + # Binary distributions on npm + - name: npm + id: '@sentry/cli-darwin' + includeNames: /^sentry-cli-darwin-\d.*\.tgz$/ + - name: npm + id: '@sentry/cli-linux-arm' + includeNames: /^sentry-cli-linux-arm-\d.*\.tgz$/ + - name: npm + id: '@sentry/cli-linux-arm64' + includeNames: /^sentry-cli-linux-arm64-\d.*\.tgz$/ + - name: npm + id: '@sentry/cli-linux-i686' + includeNames: /^sentry-cli-linux-i686-\d.*\.tgz$/ + - name: npm + id: '@sentry/cli-linux-x64' + includeNames: /^sentry-cli-linux-x64-\d.*\.tgz$/ + - name: npm + id: '@sentry/cli-win32-i686' + includeNames: /^sentry-cli-win32-i686-\d.*\.tgz$/ + - name: npm + id: '@sentry/cli-win32-x64' + includeNames: /^sentry-cli-win32-x64-\d.*\.tgz$/ + - name: brew tap: getsentry/tools template: > diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index abe46c0f9e..acaf8e0d6c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -236,7 +236,7 @@ jobs: run: rm -rf npm-binary-distributions/*/bin/.gitkeep - name: Package distribution packages run: | - for dir in npm-binary-distributions/*/bin/; do + for dir in npm-binary-distributions/*; do cd $dir npm pack cd - diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh index ff33a4dac4..5b14572ee6 100755 --- a/scripts/bump-version.sh +++ b/scripts/bump-version.sh @@ -22,3 +22,9 @@ cargo update -p sentry-cli # Do not tag and commit changes made by "npm version" export npm_config_git_tag_version=false npm version "${TARGET}" + +for dir in $SCRIPT_DIR/../npm-binary-distributions/*; do + cd $dir + npm version "${TARGET}" + cd - +done