@sentry/craft 1.4.4 → 1.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.6.0
4
+
5
+ ### Various fixes & improvements
6
+
7
+ - feat(commit-on-git-repository): Allow for authentication in github (#495) by @lforst
8
+
9
+ ## 1.5.0
10
+
11
+ ### Various fixes & improvements
12
+
13
+ - feat: Add `commit-on-git-repository` target (#492) by @lforst
14
+ - build(deps): bump semver from 6.3.0 to 6.3.1 (#470) by @dependabot
15
+ - build(deps): bump @babel/traverse from 7.22.5 to 7.23.2 (#494) by @dependabot
16
+ - ref: remove volta from CI (#493) by @asottile-sentry
17
+ - fix: Handle `{major}.json` and `{minor}.json` symlinks when publishing older versions (#483) by @cleptric
18
+ - Bump symbol collector 1.12.0 (#491) by @bruno-garcia
19
+
3
20
  ## 1.4.4
4
21
 
5
22
  ### Various fixes & improvements
package/README.md CHANGED
@@ -57,6 +57,7 @@ then enforces a specific workflow for managing release branches, changelogs, art
57
57
  - [Symbol Collector (`symbol-collector`)](#symbol-collector-symbol-collector)
58
58
  - [pub.dev (`pub-dev`)](#pubdev-pub-dev)
59
59
  - [Hex (`hex`)](#hex-hex)
60
+ - [Commit on Git Repository (`commit-on-git-repository`)](#git-repository-commit-on-git-repository)
60
61
  - [Integrating Your Project with `craft`](#integrating-your-project-with-craft)
61
62
  - [Pre-release (Version-bumping) Script: Conventions](#pre-release-version-bumping-script-conventions)
62
63
  - [Post-release Script: Conventions](#post-release-script-conventions)
@@ -1049,14 +1050,14 @@ Note: in order to see the output of the commands, set the [logging level](#loggi
1049
1050
 
1050
1051
  **Configuration**
1051
1052
 
1052
- | Option | Description |
1053
- | --------------------- | -------------------------------------------------------------------- |
1054
- | `mavenCliPath` | Path to the Maven CLI. It must be executable by the calling process. |
1055
- | `mavenSettingsPath` | Path to the Maven `settings.xml` file. |
1056
- | `mavenRepoId` | ID of the Maven server in the `settings.xml`. |
1057
- | `mavenRepoUrl` | URL of the Maven repository. |
1058
- | `android` | Android configuration, see below. |
1059
- | `kmp` | Kotlin Multiplatform configuration, see below. |
1053
+ | Option | Description |
1054
+ | ------------------- | -------------------------------------------------------------------- |
1055
+ | `mavenCliPath` | Path to the Maven CLI. It must be executable by the calling process. |
1056
+ | `mavenSettingsPath` | Path to the Maven `settings.xml` file. |
1057
+ | `mavenRepoId` | ID of the Maven server in the `settings.xml`. |
1058
+ | `mavenRepoUrl` | URL of the Maven repository. |
1059
+ | `android` | Android configuration, see below. |
1060
+ | `kmp` | Kotlin Multiplatform configuration, see below. |
1060
1061
 
1061
1062
  The Kotlin Multiplatform configuration is optional and `false` by default.
1062
1063
  If your project isn't related to Android, you don't need this configuration and
@@ -1094,6 +1095,7 @@ targets:
1094
1095
  ```
1095
1096
 
1096
1097
  **Example (with Kotlin Multiplatform config)**
1098
+
1097
1099
  ```yaml
1098
1100
  targets:
1099
1101
  - name: maven
@@ -1177,7 +1179,7 @@ Pushes a package to the Elixir / Erlang package manager [Hex](https://hex.pm).
1177
1179
  `mix` (bundled with the `elixir` language) must be installed on the system.
1178
1180
 
1179
1181
  | Name | Description |
1180
- | --------- | --------------------------------------------------------- |
1182
+ | ------------- | --------------------------------------------------------- |
1181
1183
  | `HEX_API_KEY` | API Key obtained from hex.pm account |
1182
1184
  | `MIX_BIN` | **optional**. Path to "mix" executable. Defaults to `mix` |
1183
1185
 
@@ -1192,6 +1194,38 @@ targets:
1192
1194
  - name: hex
1193
1195
  ```
1194
1196
 
1197
+ ### Commit on Git Repository (`commit-on-git-repository`)
1198
+
1199
+ Takes a tarball and pushes the unpacked contents to a git repository.
1200
+
1201
+ **Environment**
1202
+
1203
+ | Name | Description |
1204
+ | ------------------ | ------------------------------------------------------------------------------------------------ |
1205
+ | `GITHUB_API_TOKEN` | GitHub PAT that will be used for authentication when a the `repositoryUrl` host is `github.com`. |
1206
+
1207
+ **Configuration**
1208
+
1209
+ | Option | Description |
1210
+ | ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1211
+ | `archive` | Regular expression to match a `.tgz` file in the build artifacts. The content of the found file will be pushed to the git repository. Needs to match exactly one file. |
1212
+ | `repositoryUrl` | Url to the git remote git repository. Must use http or https protocol! (no `git@...`) |
1213
+ | `branch` | Which repository branch to push to. |
1214
+ | `stripComponents` | **optional**. How many leading path elements should be removed when unpacking the tarball. Default: 0 (see `tar --strip-components` option) |
1215
+ | `createTag` | **optional**. Whether to attach a tag to the created commit. The content of the tag is gonna be equal to the release version passed to craft ("NEW-VERSION"). Default: `false` |
1216
+
1217
+ **Example**
1218
+
1219
+ ```yaml
1220
+ targets:
1221
+ - name: commit-on-git-repository
1222
+ archive: /^sentry-deno-\d.*\.tgz$/
1223
+ repositoryUrl: https://github.com/getsentry/sentry-deno
1224
+ stripComponents: 1
1225
+ branch: main
1226
+ createTag: true
1227
+ ```
1228
+
1195
1229
  ## Integrating Your Project with `craft`
1196
1230
 
1197
1231
  Here is how you can integrate your GitHub project with `craft`: