You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ jobs:
37
37
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38
38
with:
39
39
build_script: pnpm build # Optional
40
-
comment_command: /snapit # Default value not required
40
+
trigger_comment: /snapit # Default value not required
41
41
```
42
42
43
43
**Deploy to branch**
@@ -66,7 +66,7 @@ jobs:
66
66
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
67
67
with:
68
68
branch: snapshot-release
69
-
comment_command: /snapit # Default value not required
69
+
trigger_comment: /snapit # Default value not required
70
70
```
71
71
72
72
## Environment Variables
@@ -79,20 +79,20 @@ The `GITHUB_TOKEN` is needed for changesets to look up the current changeset whe
79
79
80
80
A `NPM_TOKEN` needs to be created and added to the repository to [publish packages from GitHub actions to the npm registry](https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages#publishing-packages-to-the-npm-registry).
| `build_script` | - | The build script to run before publishing. |
87
-
| `comment_command` | `/snapit` | The comment to write to trigger the creation of a snapshot. |
88
-
| `branch` | - | Push the changes to a branch instead of publishing to the NPM registry. |
89
-
| `custom_message_prefix` | - | Custom message to add to the beginning of the release GitHub comment. Default: "Test the snapshots by updating your package.json with the newly published versions:"|
90
-
| `custom_message_suffix` | - | Custom message to add to the end of the release GitHub comment. |
91
-
| `global_install` | `false` | If true, the generated GitHub comment will show the command to install your packages globally. Otherwise, shows a JSON example to update local dependencies. |
92
-
| `github_comment_included_packages` | - | Filter to include specific packages in the release GitHub comment. Separate multiple packages with commas. |
93
-
| `working_directory` | - | If specified, the action will run all commands for snapit in the specified directory. |
94
-
| `post_install_script` | - | If specified, will run a script after dependencies are installed. |
95
-
| `release_branch` | `changeset-release/main` | If specified, will use this branch name in place of the default |
| `trigger_comment` | Default: `/snapit`. Comma seperated list of comments to write to trigger the creation of a snapshot. |
87
+
| `comment_prefix` | Custom message to add to the beginning of the release GitHub comment. Default: "Test the snapshots by updating your package.json with the newly published versions:"|
88
+
| `comment_suffix` | Custom message to add to the end of the release GitHub comment. |
89
+
| `comment_packages` | Filter to include specific packages in the release GitHub comment. Separate multiple packages with commas. |
90
+
| `comment_is_global` | If true, the generated GitHub comment will show the command to install your packages globally. Otherwise, shows a JSON example to update local dependencies. |
91
+
| `cwd` | If specified, the action will run all commands for snapit in the specified directory. |
92
+
| `branch` | Push the changes to a branch instead of publishing to the NPM registry. |
93
+
| `post_install_script` | If specified, will run a script after dependencies are installed. |
94
+
| `build_script` | The build script to run before publishing. |
95
+
| `release_branch` | Default: `changeset-release/main`. If specified, will use this branch name in place of the default |
Copy file name to clipboardExpand all lines: action.yml
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -2,25 +2,25 @@ name: snapit-release
2
2
description: Create a snapshot NPM release with `/snapit` comment in a PR
3
3
author: Shopify
4
4
inputs:
5
-
build_script:
6
-
description: Build script for building the repository before publishing.
7
-
post_install_script:
8
-
description: Script to run after dependencies are installed.
9
-
comment_command:
5
+
trigger_comment:
10
6
description: A comma seperated list of comment commands to trigger the action
11
7
default: '/snapit'
12
-
branch:
13
-
description: Push the changes to a branch instead of publishing to the NPM registry.
14
-
custom_message_prefix:
8
+
comment_prefix:
15
9
description: Custom message added to the beginning of the snapit GitHub comment. By default a generic message is shown.
16
-
custom_message_suffix:
10
+
comment_suffix:
17
11
description: Custom message added to the end of the snapit GitHub comment.
18
-
global_install:
19
-
description: If true, the GitHub comment will show instructions to install a global npm package instead of the normal JSON dependencies.
20
-
github_comment_included_packages:
12
+
comment_packages:
21
13
description: Which packages to include in the final output. All pacakges are still published, but only those in this list are shown in the final message. If empty, all packages are included.
22
-
working_directory:
14
+
comment_is_global:
15
+
description: If true, the generated GitHub comment will show the command to install your packages globally. Otherwise, shows a JSON example to update local dependencies.
16
+
cwd:
23
17
description: If specified, the action will run all commands for snapit in the specified directory.
18
+
branch:
19
+
description: Push the changes to a branch instead of publishing to the NPM registry.
20
+
build_script:
21
+
description: Build script for building the repository before publishing.
22
+
post_install_script:
23
+
description: Script to run after dependencies are installed.
24
24
release_branch:
25
25
description: If specified, will use this branch name in place of the default `changeset-release/main` branch.
0 commit comments