@sebbo2002/semantic-release-jsr 1.0.0-develop.8 → 1.0.0-develop.9

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/README.md CHANGED
@@ -5,20 +5,20 @@
5
5
  Small `semantic-release` plugin, which adjusts the version in the `jsr.json` file and executes
6
6
  `jsr publish` to publish the module on jsr.io as well.
7
7
 
8
- ## 🚨 This is still Work in Progress!
8
+ ## 🚨 Work in Progress
9
+
10
+ This plugin is still very fresh and therefore anything but stable or reliable. Please only use it
11
+ if you don't mind failing releases.
9
12
 
10
- | Step | Description |
11
- | ------------------ |-------------------------------------------------|
12
- | `verifyConditions` | Runs `jsr publish --dry-run` to test your setup |
13
- | `prepare` | Update the `jsr.json` / `deno.json` files |
14
- | `publish` | Run final `jsr publish` command |
15
13
 
16
14
  ## 📦 Install
17
15
 
18
16
  ```bash
19
- $ npm install -D @sebbo2002/semantic-release-jsr
17
+ # Install via npm
18
+ $ npm install -D @sebbo2002/semantic-release-jsr@next
20
19
  ```
21
20
 
21
+
22
22
  ## 🔧 Usage
23
23
 
24
24
  The plugin can be configured in the [**semantic-release** configuration file](https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#configuration):
@@ -34,8 +34,18 @@ The plugin can be configured in the [**semantic-release** configuration file](ht
34
34
  ```
35
35
 
36
36
  Please do not forget to set the `id-token` permission in your GitHub action so that `jsr publish`
37
- can access the OIDC ID token for authentication.
37
+ can access the OIDC ID token for authentication. Optionally, some options can be passed to the
38
+ plugin, which are documented [here](https://sebbo2002.github.io/semantic-release-jsr/develop/reference/interfaces/PluginConfig.html).
39
+
40
+
41
+ ## ⚙️ Steps
38
42
 
43
+ | Step | Description |
44
+ |----------------------|-------------------------------------------------------------------------------------------|
45
+ | `verifyConditions` | Runs `jsr publish --dry-run` to test your setup. Also downloads the deno binary if required. |
46
+ | `prepare` | Update the `jsr.json` / `deno.json` files |
47
+ | `publish` | Run final `jsr publish` command |
48
+ | `fail` / `success` | Remove the temporary folder |
39
49
 
40
50
  ## 🙆🏼‍♂️ Copyright and license
41
51
 
package/dist/index.d.cts CHANGED
@@ -2,9 +2,25 @@ import { PublishOptions } from 'jsr';
2
2
  import { NextRelease, VerifyConditionsContext, PrepareContext, PublishContext, SuccessContext, FailContext, VerifyReleaseContext } from 'semantic-release';
3
3
 
4
4
  interface PluginConfig {
5
+ /**
6
+ * Working directory given to `jsr publish`.
7
+ * Defaults to current directory.
8
+ */
5
9
  cwd?: string;
10
+ /**
11
+ * Path to package.json.
12
+ * Defaults to `cwd` + `/package.json` if it exists.
13
+ */
6
14
  pkgJsonPath?: string;
15
+ /**
16
+ * Additional arguments to pass to `jsr publish`.
17
+ */
7
18
  publishArgs?: string[];
19
+ /**
20
+ * Allow `--allow-dirty` to be passed to `jsr publish`.
21
+ * Defaults to `true`, as usually the version is bumped before publishing.
22
+ * Set to `false` to prevent `--allow-dirty` from being passed.
23
+ */
8
24
  allowDirty?: boolean;
9
25
  }
10
26
  interface NormalizedPluginConfig {
package/dist/index.d.ts CHANGED
@@ -2,9 +2,25 @@ import { PublishOptions } from 'jsr';
2
2
  import { NextRelease, VerifyConditionsContext, PrepareContext, PublishContext, SuccessContext, FailContext, VerifyReleaseContext } from 'semantic-release';
3
3
 
4
4
  interface PluginConfig {
5
+ /**
6
+ * Working directory given to `jsr publish`.
7
+ * Defaults to current directory.
8
+ */
5
9
  cwd?: string;
10
+ /**
11
+ * Path to package.json.
12
+ * Defaults to `cwd` + `/package.json` if it exists.
13
+ */
6
14
  pkgJsonPath?: string;
15
+ /**
16
+ * Additional arguments to pass to `jsr publish`.
17
+ */
7
18
  publishArgs?: string[];
19
+ /**
20
+ * Allow `--allow-dirty` to be passed to `jsr publish`.
21
+ * Defaults to `true`, as usually the version is bumped before publishing.
22
+ * Set to `false` to prevent `--allow-dirty` from being passed.
23
+ */
8
24
  allowDirty?: boolean;
9
25
  }
10
26
  interface NormalizedPluginConfig {
package/package.json CHANGED
@@ -61,5 +61,5 @@
61
61
  "test": "mocha"
62
62
  },
63
63
  "type": "module",
64
- "version": "1.0.0-develop.8"
64
+ "version": "1.0.0-develop.9"
65
65
  }