@getrouter/getrouter-cli 0.1.12 → 0.1.14

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.
@@ -0,0 +1,38 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ paths:
7
+ - "package.json"
8
+
9
+ jobs:
10
+ release:
11
+ runs-on: ubuntu-latest
12
+ permissions:
13
+ contents: write
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ with:
17
+ fetch-depth: 2
18
+
19
+ - name: Check version change
20
+ id: version
21
+ run: |
22
+ CURRENT_VERSION=$(jq -r '.version' package.json)
23
+ git show HEAD~1:package.json > /tmp/prev-package.json 2>/dev/null || echo '{"version":""}' > /tmp/prev-package.json
24
+ PREV_VERSION=$(jq -r '.version' /tmp/prev-package.json)
25
+ if [ "$CURRENT_VERSION" != "$PREV_VERSION" ]; then
26
+ echo "changed=true" >> $GITHUB_OUTPUT
27
+ echo "version=$CURRENT_VERSION" >> $GITHUB_OUTPUT
28
+ else
29
+ echo "changed=false" >> $GITHUB_OUTPUT
30
+ fi
31
+
32
+ - name: Create Release
33
+ if: steps.version.outputs.changed == 'true'
34
+ uses: softprops/action-gh-release@v2
35
+ with:
36
+ tag_name: v${{ steps.version.outputs.version }}
37
+ name: v${{ steps.version.outputs.version }}
38
+ generate_release_notes: true