Skip to content

Commit 718f09c

Browse files
authored
Merge pull request #7 from code0-tech/1-pipelines-for-mr-and-publishing-and-renovate-setup
Pipelines for MR and publishing and renovate setup
2 parents d35d924 + 3ee005c commit 718f09c

5 files changed

Lines changed: 69 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Publish Package
2+
permissions:
3+
id-token: write
4+
on:
5+
push:
6+
tags:
7+
- '*'
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v5
13+
- uses: actions/setup-node@v6
14+
with:
15+
node-version: '24.x'
16+
registry-url: 'https://registry.npmjs.org'
17+
- run: npm version from-git --git-tag-version=false
18+
- run: npm ci
19+
- run: npm run build
20+
- run: npm publish --tag latest

.github/workflows/test.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Run Tests
2+
on:
3+
push:
4+
branches:
5+
- 'main'
6+
pull_request:
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v5
12+
- uses: actions/setup-node@v6
13+
with:
14+
node-version: '24.x'
15+
registry-url: 'https://registry.npmjs.org'
16+
- run: npm ci
17+
- run: npm run build
18+
- run: npm run test

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodejs 24.13.0

renovate.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"github>code0-tech/monoceros//renovate/global.json5",
5+
":assignee(nicosammito)"
6+
],
7+
"packageRules": [
8+
{
9+
"matchManagers": [
10+
"asdf",
11+
"github-actions"
12+
],
13+
"extends": [
14+
":assignee(Taucher2003)"
15+
]
16+
},
17+
{
18+
"matchDepTypes": [
19+
"devDependencies"
20+
],
21+
"rangeStrategy": "bump"
22+
}
23+
]
24+
}

vite.config.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,12 @@ export default defineConfig({
2727
plugins: [
2828
dts({
2929
insertTypesEntry: true,
30-
include: ['src/**/*.ts']
30+
include: ['src/**/*.ts'],
31+
afterDiagnostic: diagnostics => {
32+
if (diagnostics.length > 0) {
33+
throw new Error("dts failed");
34+
}
35+
}
3136
})
3237
]
3338
});

0 commit comments

Comments
 (0)