Skip to content

Commit

Permalink
use changesets action to create pull request for release (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-babylonlabs authored Nov 22, 2024
1 parent 847e91a commit b612697
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/reusable_node_lint_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ jobs:
runs-on: ubuntu-24.04

steps:
- name: Validate Inputs
run: |
if [ "${{ inputs.publish }}" = "true" ] && [ "${{ inputs.run-changesets }}" = "true" ]; then
echo "Error: Both 'publish' and 'run-changesets' cannot be true at the same time."
exit 1
fi
- name: Checkout repository
uses: actions/checkout@v4

Expand All @@ -64,8 +71,11 @@ jobs:
- name: Create Release Pull Request
if: ${{ inputs.run-changesets }}
uses: changesets/action@v1
with:
publish: ${{ inputs.publish-command }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Publish package
if: ${{ inputs.publish }}
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 0.11.1

- Bugfix: reusable_node_lint_test: Use changesets action to create pull request for release
- Bugfix: reusable_node_lint_test: Fix bug where both publish and run-changesets cannot be true

## 0.11.0

Expand Down

0 comments on commit b612697

Please sign in to comment.