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 1fc62c4
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 6 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,23 @@ 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: Log git status and diff
run: |
echo "Checking git status..."
git status
echo "Checking git diff..."
git diff
- 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
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 1fc62c4

Please sign in to comment.