Skip to content

Commit e959aa9

Browse files
committed
chore: fixed component prefix handling + updated ci
Signed-off-by: Frederik Bußmann <frederik@bussmann.io>
1 parent 368f599 commit e959aa9

File tree

6 files changed

+3616
-3133
lines changed

6 files changed

+3616
-3133
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: 'Test & Release'
33
on:
44
push:
55
branches:
6-
- main
6+
- '**'
77
pull_request:
88
branches:
99
- main
@@ -38,11 +38,7 @@ jobs:
3838
name: 'Release package'
3939
needs: [ test ]
4040
runs-on: ubuntu-latest
41-
if: |
42-
github.event_name == 'push' &&
43-
github.ref == 'refs/heads/main' &&
44-
!contains(github.event.head_commit.message, '[skip-release]') &&
45-
!startsWith(github.event.head_commit.message, '/renovate/')
41+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
4642

4743
steps:
4844
- uses: actions/checkout@v4
@@ -57,52 +53,24 @@ jobs:
5753
npm install
5854
npm run dev:prepare
5955
60-
- name: Release
61-
run: |
62-
npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISHING_KEY }}
63-
npm run release:ci
64-
65-
bump-version:
66-
name: 'Bump package version'
67-
needs: [ test ]
68-
runs-on: ubuntu-latest
69-
if: |
70-
github.event_name == 'push' &&
71-
startsWith(github.ref, 'refs/heads/renovate/')
72-
73-
steps:
74-
- uses: actions/checkout@v4
75-
76-
- uses: actions/setup-node@v4
77-
with:
78-
node-version: '22'
79-
cache: 'npm'
80-
81-
- name: Install
82-
run: |
83-
npm install
84-
npm run dev:prepare
85-
86-
- name: Bump version
87-
id: bump_version
56+
- name: Release (Renovate)
57+
if: startsWith(github.event.head_commit.message, 'chore(deps)')
8858
run: |
8959
git config user.name "github-actions[bot]"
9060
git config user.email "github-actions[bot]@users.noreply.github.com"
91-
61+
9262
NEW_VERSION=$(npm version patch -m "chore: bumped package version to %s")
93-
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
94-
95-
- name: Update CHANGELOG.md
96-
run: |
9763
echo -e "# $NEW_VERSION\n- Bumped dependencies\n\n$(cat CHANGELOG.md)" > CHANGELOG.md
64+
9865
git add CHANGELOG.md
99-
100-
- name: Push changes
101-
run: |
10266
git commit --amend --no-edit
10367
git push origin main --tags
68+
69+
npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISHING_KEY }}
70+
npm run release:ci
10471
105-
- name: Release new version
72+
- name: Release (Manual)
73+
if: "!startsWith(github.event.head_commit.message, 'chore(deps)')"
10674
run: |
10775
npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_PUBLISHING_KEY }}
108-
npm run release:ci
76+
npm run release:ci || true

.nuxtrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# enable TypeScript bundler module resolution - https://www.typescriptlang.org/docs/handbook/modules/reference.html#bundler
2+
experimental.typescriptBundlerResolution=true

CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# 1.0.14
1+
# 1.0.15
2+
- Fixed component prefix handling with nuxt-kit@3.15.4
3+
4+
# 1.0.14
25
- Bumped dependencies
36

47
# 1.0.13

0 commit comments

Comments
 (0)