Skip to content

Commit

Permalink
chore: update release-it config
Browse files Browse the repository at this point in the history
  • Loading branch information
marianfoo committed Jul 3, 2024
1 parent 2cfb5c1 commit a98964c
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 4 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ jobs:
- name: Install dependencies
run: npm install

- name: Generate .npmrc
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Setup git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "marianfoo"
- name: Create Release
run: npm run release
env:
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules
node_modules
# Ignore .npmrc
.npmrc
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Ignore .npmrc
.npmrc
4 changes: 3 additions & 1 deletion .release-it.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
"plugins": {
"@release-it/conventional-changelog": {
"preset": "angular",
"infile": "CHANGELOG.md"
"infile": "CHANGELOG.md",
"header": "# Changelog",
"releaseCount": 0
}
}
}
1 change: 0 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
# Change Log
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "ui5-task-btp-manifest",
"version": "0.0.1",
"version": "0.0.2",
"description": "custom ui5 tooling task",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"local-release": "npx release-it --no-git.requireCleanWorkingDir --no-npm.publish --no-github.release",
"release": "release-it"
},
"repository": {
Expand Down

0 comments on commit a98964c

Please sign in to comment.