Skip to content

Commit 64f1d57

Browse files
committed
chore: switch to semantic-release for releases
1 parent 909169d commit 64f1d57

File tree

8 files changed

+7515
-3546
lines changed

8 files changed

+7515
-3546
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
1-
name: Deploy releases to NPM
1+
name: Publish releases to NPM
22
on:
33
push:
4-
tags: ['v*']
4+
branches: ['main']
5+
permissions:
6+
contents: write
57
jobs:
68
publish:
79
runs-on: ubuntu-latest
810
steps:
9-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v5
12+
- run: corepack enable
1013
- uses: actions/setup-node@v4
1114
with:
1215
node-version: 'lts/*'
13-
registry-url: 'https://registry.npmjs.org'
14-
- run: npm ci
15-
- run: npm publish
16+
- run: yarn install --immutable
17+
- run: npx semantic-release
1618
env:
17-
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
NPM_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules/
22
coverage/
33
lib/
4+
.yarn/

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx --no -- commitlint --edit $1

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

commitlint.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
extends: ['@commitlint/config-conventional']
3+
};

0 commit comments

Comments
 (0)