Skip to content

Commit 34db2ce

Browse files
authored
Merge pull request #8 from bocan:fix/rejig-release
Update dependencies and add release script
2 parents 16ab038 + 6ad88ed commit 34db2ce

4 files changed

Lines changed: 2438 additions & 271 deletions

File tree

.github/workflows/node.js.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ name: CI & Deploy
66
on:
77
push:
88
branches: [ "**" ]
9+
paths-ignore:
10+
- 'CHANGELOG.md'
11+
- 'package.json'
12+
- 'package-lock.json'
913
pull_request:
1014
branches: [ "main" ]
1115

@@ -58,19 +62,19 @@ jobs:
5862
git config user.name "github-actions[bot]"
5963
git config user.email "github-actions[bot]@users.noreply.github.com"
6064
61-
- name: Bump patch version
62-
id: version
63-
run: |
64-
NEW_VERSION=$(npm version patch --no-git-tag-version)
65-
echo "tag=${NEW_VERSION}" >> "$GITHUB_OUTPUT"
66-
echo "Bumped to ${NEW_VERSION}"
65+
- name: Run release
66+
run: npm run release
67+
env:
68+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6769

68-
- name: Commit version bump
70+
- name: Push changes
71+
run: git push --follow-tags origin main
72+
73+
- name: Extract version
74+
id: version
6975
run: |
70-
git add package.json package-lock.json
71-
git commit -m "release: ${{ steps.version.outputs.tag }} [skip ci]"
72-
git tag "${{ steps.version.outputs.tag }}"
73-
git push origin main --tags
76+
VERSION=$(node -p "require('./package.json').version")
77+
echo "tag=v${VERSION}" >> "$GITHUB_OUTPUT"
7478
7579
- name: Create GitHub Release
7680
uses: softprops/action-gh-release@v2

.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"github.copilot.chat.commitMessageGeneration.instructions": [
3+
{
4+
"text": "Generate commit messages following Conventional Commits format (https://www.conventionalcommits.org/). Use these types: feat (new feature), fix (bug fix), docs (documentation), style (formatting), refactor (code restructuring), perf (performance), test (tests), chore (maintenance). Format: <type>(<optional scope>): <short summary>. Keep the first line under 72 characters. Use imperative mood ('add' not 'added'). For breaking changes, add BREAKING CHANGE: in the body or ! after the type. Examples: 'feat(auth): add password reset functionality', 'fix: resolve null pointer in search', 'feat: add version management and UI improvements' with bullets in body."
5+
}
6+
]
7+
}

0 commit comments

Comments
 (0)