Skip to content

Commit 534f6ba

Browse files
authored
chore: configures release and adds dry run to ci (#24)
This PR adds branch specification to semantic release and adds a dry-run to CI
1 parent 9dceb65 commit 534f6ba

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,19 @@ jobs:
1818
node-version: ${{ matrix.node-version }}
1919
- run: npm ci
2020
- run: npm run validate
21-
21+
- run: npm run build
22+
dry-run:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v4
27+
- name: Setup node
28+
uses: actions/setup-node@v3
29+
- run: npm ci
30+
- name: Build
31+
run: npm run build
32+
- name: Release
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36+
run: npm run release -- --dry-run

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,5 +107,10 @@
107107
"commitizen": {
108108
"path": "cz-conventional-changelog"
109109
}
110+
},
111+
"release": {
112+
"branches": [
113+
"main"
114+
]
110115
}
111116
}

0 commit comments

Comments
 (0)