abapgit-agent 1.1.0 → 1.1.1-1

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,70 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
+
8
+ jobs:
9
+ release:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Checkout code
13
+ uses: actions/checkout@v4
14
+
15
+ - name: Setup Node.js
16
+ uses: actions/setup-node@v4
17
+ with:
18
+ node-version: '20'
19
+ registry-url: 'https://registry.npmjs.org'
20
+
21
+ - name: Install dependencies
22
+ run: npm ci
23
+
24
+ - name: Run tests
25
+ run: npm test
26
+
27
+ - name: Publish to npm
28
+ run: npm publish
29
+ env:
30
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31
+
32
+ - name: Get tag version
33
+ id: get_tag
34
+ run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
35
+
36
+ - name: Generate release notes
37
+ id: release_notes
38
+ run: |
39
+ # Get previous tag
40
+ PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
41
+ if [ -z "$PREV_TAG" ]; then
42
+ # First release - list all commits
43
+ CHANGES=$(git log --pretty=format:"- %s (%h)" HEAD ^ --no-walk --sorted)
44
+ else
45
+ # Get changes since last tag
46
+ CHANGES=$(git log --pretty=format:"- %s (%h)" ${PREV_TAG}..HEAD --no-walk --sorted)
47
+ fi
48
+ echo "CHANGES<<EOF" >> $GITHUB_OUTPUT
49
+ echo "$CHANGES" >> $GITHUB_OUTPUT
50
+ echo "EOF" >> $GITHUB_OUTPUT
51
+
52
+ - name: Create GitHub Release
53
+ uses: softprops/action-gh-release@v1
54
+ with:
55
+ tag_name: ${{ steps.get_tag.outputs.VERSION }}
56
+ name: Release ${{ steps.get_tag.outputs.VERSION }}
57
+ body: |
58
+ ## What's New
59
+
60
+ ${{ steps.release_notes.outputs.CHANGES }}
61
+
62
+ ## Installation
63
+
64
+ ```bash
65
+ npm install -g abapgit-agent
66
+ ```
67
+ draft: false
68
+ prerelease: false
69
+ env:
70
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abapgit-agent",
3
- "version": "1.1.0",
3
+ "version": "1.1.1-1",
4
4
  "description": "ABAP Git Agent - Pull and activate ABAP code via abapGit from any git repository",
5
5
  "main": "src/index.js",
6
6
  "bin": {