Skip to content

Commit 2e22887

Browse files
authored
fix: update release workflow and configuration for automated GitHub releases (#38)
1 parent 8c7c395 commit 2e22887

5 files changed

Lines changed: 16 additions & 15 deletions

File tree

.github/workflows/build-release.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@ jobs:
99
publish-npmjs:
1010
runs-on: ubuntu-latest
1111
permissions:
12-
contents: read
12+
contents: write
1313
id-token: write
1414
steps:
1515
- uses: actions/checkout@v4
16+
with:
17+
token: ${{ secrets.GITHUB_TOKEN }}
1618

1719
- uses: actions/setup-node@v4
1820
with:
@@ -27,8 +29,11 @@ jobs:
2729

2830
- name: Set git user
2931
run: |
30-
git config --global user.email "<$GITHUB_ACTOR@users.noreply.github.com>"
31-
git config --global user.name "$GITHUB_ACTOR"
32+
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
33+
git config --global user.name "${{ github.actor }}"
3234
3335
- name: Publish package
3436
run: npm run release
37+
env:
38+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.release-it.json

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,5 @@
33
"npm": {
44
"publishArgs": ["--provenance", "--access", "public"],
55
"skipChecks": true
6-
},
7-
"git": {
8-
"commit": false,
9-
"tag": false,
10-
"push": false,
11-
"requireCleanWorkingDir": false
12-
},
13-
"github": {
14-
"release": false
156
}
167
}

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,11 @@ Helpful link for beginners: [Try it out](https://docs.n8n.io/try-it-out/)
9898

9999
## Version history
100100

101+
- **v1.0.17**:
102+
- Fixed release workflow configuration
103+
- Added GITHUB_TOKEN for automated GitHub releases
104+
- Synced package.json version with npm registry
105+
101106
- **v1.0.15**:
102107
- Added segment actions for Email Marketing (Reach)
103108
- List Segments operation

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "n8n-nodes-hostinger-api",
3-
"version": "1.0.15",
3+
"version": "1.0.16",
44
"description": "Hostinger API n8n Node",
55
"keywords": [
66
"n8n-community-node-package"

0 commit comments

Comments
 (0)