@visualon/gitea-releaser 0.0.3 → 0.0.5

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.
@@ -17,16 +17,30 @@ jobs:
17
17
 
18
18
  steps:
19
19
  - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
20
+ with:
21
+ fetch-depth: 0 # Important for changelog
22
+ filter: blob:none # We don't need all blobs
23
+
20
24
  - run: corepack enable
21
25
  - uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
22
26
  with:
23
27
  node-version-file: .node-version
24
28
  registry-url: https://registry.npmjs.org/
25
29
  - run: pnpm install
26
- - run: pnpm version ${GITHUB_REF_NAME#v}
30
+
31
+ - run: echo VERSION=${GITHUB_REF_NAME#v} >> $GITHUB_ENV
32
+ - run: pnpm version ${VERSION}
33
+ - name: Generate changelog with git-cliff
34
+ uses: tj-actions/git-cliff@v1.4.2
35
+ with:
36
+ args: --latest --strip all
37
+ output: 'CHANGELOG.md'
38
+
27
39
  - run: pnpm publish --access public
28
40
  env:
29
41
  NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
30
42
  - uses: ncipollo/release-action@6c75be85e571768fa31b40abf38de58ba0397db5 # v1.13.0
31
43
  with:
32
- generateReleaseNotes: true
44
+ bodyFile: 'CHANGELOG.md'
45
+ name: ${{ env.VERSION }}
46
+ prerelease: ${{ contains(github.ref_name, '-') }}
package/README.md CHANGED
@@ -1,3 +1,7 @@
1
1
  # gitea-releaser
2
2
 
3
- gitea releaser tool
3
+ ![GitHub License](https://img.shields.io/github/license/visualon/gitea-releaser)
4
+ [![test](https://github.com/visualon/gitea-releaser/actions/workflows/test.yml/badge.svg)](https://github.com/visualon/gitea-releaser/actions/workflows/test.yml)
5
+
6
+ Gitea releaser tool to publish Gitea / Forgejo releases from Jenkins pipelines.
7
+ Release notes are generated with `conventional-changelog` and `conventional-commits`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visualon/gitea-releaser",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "license": "MIT",
5
5
  "author": "VisualOn GmbH",
6
6
  "type": "module",
@@ -23,6 +23,14 @@
23
23
  "node": "^18.12.0 || >=20.0.0",
24
24
  "pnpm": "^8.0.0"
25
25
  },
26
+ "tags": [
27
+ "gitea",
28
+ "forgejo",
29
+ "jenkins",
30
+ "releaser",
31
+ "conventional-commits",
32
+ "conventional-changelog"
33
+ ],
26
34
  "scripts": {
27
35
  "lint:prettier": "prettier --cache --check --ignore-unknown .",
28
36
  "prettier:fix": "prettier --cache --write --ignore-unknown .",