@sebbo2002/semantic-release-jsr 1.0.0-develop.8 → 1.0.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/README.md CHANGED
@@ -5,20 +5,14 @@
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!
9
-
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
-
16
8
  ## 📦 Install
17
9
 
18
10
  ```bash
11
+ # Install via npm
19
12
  $ npm install -D @sebbo2002/semantic-release-jsr
20
13
  ```
21
14
 
15
+
22
16
  ## 🔧 Usage
23
17
 
24
18
  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 +28,18 @@ The plugin can be configured in the [**semantic-release** configuration file](ht
34
28
  ```
35
29
 
36
30
  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.
31
+ can access the OIDC ID token for authentication. Optionally, some options can be passed to the
32
+ plugin, which are documented [here](https://sebbo2002.github.io/semantic-release-jsr/develop/reference/interfaces/PluginConfig.html).
33
+
34
+
35
+ ## ⚙️ Steps
38
36
 
37
+ | Step | Description |
38
+ |----------------------|----------------------------------------------------------------------------------------------|
39
+ | `verifyConditions` | Runs `jsr publish --dry-run` to test your setup. Also downloads the deno binary if required. |
40
+ | `prepare` | Updates the `jsr.json` / `deno.json` files |
41
+ | `publish` | Run final `jsr publish` command |
42
+ | `fail` / `success` | Remove the temporary folder |
39
43
 
40
44
  ## 🙆🏼‍♂️ Copyright and license
41
45
 
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
@@ -9,7 +9,6 @@
9
9
  "description": "Small `semantic-release` plugin, which adjusts the version in the `jsr.json` file and executes `jsr publish` to publish the module on jsr.io as well.",
10
10
  "devDependencies": {
11
11
  "@qiwi/semantic-release-gh-pages-plugin": "^5.2.12",
12
- "@sebbo2002/semantic-release-jsr": "^1.0.0-develop.7",
13
12
  "@semantic-release/changelog": "^6.0.3",
14
13
  "@semantic-release/exec": "^6.0.3",
15
14
  "@semantic-release/git": "^10.0.1",
@@ -61,5 +60,5 @@
61
60
  "test": "mocha"
62
61
  },
63
62
  "type": "module",
64
- "version": "1.0.0-develop.8"
63
+ "version": "1.0.0"
65
64
  }