@scaleway/changesets-renovate 1.3.2 → 1.4.1

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,17 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#1761](https://github.com/scaleway/scaleway-lib/pull/1761) [`f378e4c`](https://github.com/scaleway/scaleway-lib/commit/f378e4c915eab3cf53bfc1885845a802c83eceb3) Thanks [@renovate](https://github.com/apps/renovate)! - Updated dependency `simple-git` to `3.22.0`.
8
+
9
+ ## 1.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#1705](https://github.com/scaleway/scaleway-lib/pull/1705) [`d3e1246`](https://github.com/scaleway/scaleway-lib/commit/d3e1246f70229cf9e3a7a5d464d921fe5e379af0) Thanks [@wrighbr](https://github.com/wrighbr)! - add the ability to skip commit
14
+
3
15
  ## 1.3.2
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -16,4 +16,10 @@ This package is a very simple CLI:
16
16
  changesets-renovate
17
17
  ```
18
18
 
19
+ To skip committing the changeset.
20
+
21
+ ```bash
22
+ SKIP_COMMIT=TRUE changesets-renovate
23
+ ```
24
+
19
25
  It's inspired by this GitHub Action from Backstage: https://github.com/backstage/backstage/blob/master/.github/workflows/sync_renovate-changesets.yml
package/dist/index.js CHANGED
@@ -82,9 +82,11 @@ async function run() {
82
82
  const fileName = `.changeset/renovate-${shortHash}.md`;
83
83
  const packageBumps = await getBumps(files);
84
84
  await createChangeset(fileName, packageBumps, packageNames);
85
- await simpleGit().add(fileName);
86
- await simpleGit().commit(`chore: add changeset renovate-${shortHash}`);
87
- await simpleGit().push();
85
+ if (!process.env['SKIP_COMMIT']) {
86
+ await simpleGit().add(fileName);
87
+ await simpleGit().commit(`chore: add changeset renovate-${shortHash}`);
88
+ await simpleGit().push();
89
+ }
88
90
  }
89
91
  run().catch(console.error);
90
92
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/changesets-renovate",
3
- "version": "1.3.2",
3
+ "version": "1.4.1",
4
4
  "description": "Automatically create changesets for Renovate",
5
5
  "type": "module",
6
6
  "engines": {
@@ -25,6 +25,6 @@
25
25
  "sync"
26
26
  ],
27
27
  "dependencies": {
28
- "simple-git": "3.21.0"
28
+ "simple-git": "3.22.0"
29
29
  }
30
30
  }