Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions actions/bump-version/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,20 @@ runs:
- name: 'Get next version'
id: get_version
shell: bash
run: echo "version=$(cz bump --get-next)" >> "$GITHUB_OUTPUT"
run: |
Comment thread
nathanosdev marked this conversation as resolved.
cmd="cz bump --get-next --yes"

if [ -n "${{ inputs.prerelease }}" ]; then
cmd="$cmd --prerelease ${{ inputs.prerelease }}"
fi

version=$($cmd)
echo "version=$version" >> "$GITHUB_OUTPUT"

- name: 'Generate changelog'
shell: bash
run: |
cmd="cz bump --files-only --changelog"
cmd="cz bump --files-only --changelog --yes"

if [ -n "${{ inputs.prerelease }}" ]; then
cmd="$cmd --prerelease ${{ inputs.prerelease }}"
Expand Down
6 changes: 3 additions & 3 deletions actions/is-beta-tag/README.md
Comment thread
nathanosdev marked this conversation as resolved.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This action checks if the current git tag uses the beta release format. The expe

## Action outputs

- `is_beta_tag`: A boolean indicating whether the current git tag uses the beta release format.
- `is_beta_tag`: A stringified boolean indicating whether the current git tag uses the beta release format.

## Example usage

Expand Down Expand Up @@ -34,6 +34,6 @@ jobs:
with:
tag: '${{ github.ref_name }}'
commit: 'main'
prerelease: ${{ steps.is_beta_tag.outputs.is_beta_tag == true }}
makeLatest: ${{ steps.is_beta_tag.outputs.is_beta_tag == false }}
prerelease: ${{ steps.is_beta_tag.outputs.is_beta_tag == 'true' }}
makeLatest: ${{ steps.is_beta_tag.outputs.is_beta_tag == 'false' }}
```
2 changes: 1 addition & 1 deletion actions/is-beta-tag/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: 'This action checks if the current git tag uses the beta release fo

outputs:
is_beta_tag:
description: 'A boolean indicating whether the current git tag uses the beta release format.'
description: 'A stringified boolean indicating whether the current git tag uses the beta release format.'
value: ${{ steps.is_beta_tag.outputs.is_beta_tag }}

runs:
Expand Down
12 changes: 6 additions & 6 deletions actions/npm-publish/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ This action publishes a package to the npm registry. It assumes that `npm` is al

## Action inputs

| Input | Description | Default |
| --------- | ---------------------------------------------------- | ---------- |
| `token` | The npm token to authenticate with the npm registry. | _required_ |
| `is_beta` | Publish the package as a beta version. | `false` |
| Input | Description | Default |
| --------- | --------------------------------------------------------------------- | ---------- |
| `token` | The npm token to authenticate with the npm registry. | _required_ |
| `is_beta` | Publish the package as a beta version. Expects a stringified boolean. | `'false'` |

## Action outputs

Expand Down Expand Up @@ -53,6 +53,6 @@ jobs:
artifacts: ${{ steps.publish_dfinity_cns.outputs.artifact_filepath }}
tag: '${{ github.ref_name }}'
commit: 'main'
prerelease: ${{ steps.is_beta_tag.outputs.is_beta_tag == true }}
makeLatest: ${{ steps.is_beta_tag.outputs.is_beta_tag == false }}
prerelease: ${{ steps.is_beta_tag.outputs.is_beta_tag == 'true' }}
makeLatest: ${{ steps.is_beta_tag.outputs.is_beta_tag == 'false' }}
```
6 changes: 3 additions & 3 deletions actions/npm-publish/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ inputs:
description: 'The npm token to use for authentication.'
required: true
is_beta:
description: 'Publish the package as a beta version.'
description: 'A stringified boolean indicating whether to publish the package as a beta version.'
required: false
default: false
default: 'false'

outputs:
artifact_filepath:
Expand All @@ -27,7 +27,7 @@ runs:
echo "artifact_filepath=$artifact_filepath" >> "$GITHUB_OUTPUT"

release_cmd="npm publish --access public"
if [ "${{ inputs.is_beta }}" = true ]; then
if [ "${{ inputs.is_beta }}" = 'true' ]; then
release_cmd="$release_cmd --tag beta"
fi

Expand Down