Skip to content

Commit 3cf6dbd

Browse files
committed
feat(release): update release process to include develop branch and enhance configuration
1 parent 38e5f9c commit 3cf6dbd

6 files changed

Lines changed: 30 additions & 35 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release
22

33
on:
44
push:
5-
branches: [master]
5+
branches: [master, develop]
66

77
jobs:
88
release:

.releaserc.cjs

Lines changed: 0 additions & 26 deletions
This file was deleted.

.releaserc.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* @type {import('semantic-release').GlobalConfig}
3+
*/
4+
export default {
5+
branches: ['master', {name: 'develop', prerelease: true, channel: 'dev'}],
6+
plugins: [
7+
'@semantic-release/commit-analyzer',
8+
'@semantic-release/release-notes-generator',
9+
'@semantic-release/npm',
10+
[
11+
'@semantic-release/github',
12+
{
13+
assets: ['dist/**'],
14+
},
15+
],
16+
],
17+
}

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ hooks using Husky.
4141

4242
## Release Process
4343

44-
Releases are automated with semantic-release on every push to the `master`
45-
branch.
44+
Releases are automated with semantic-release on every push to the `master` and
45+
`develop` branches.
4646

47-
- Do not manually bump versions or edit the changelog; semantic-release handles
48-
both.
47+
- Do not manually bump versions or edit a changelog; releases are published on
48+
GitHub without committing files back to the repo.
4949
- Follow Conventional Commits so the release type can be inferred.
5050
- The GitHub Actions workflow requires these secrets:
5151
- `NPM_TOKEN` (publish to npm)

lint-staged.config.cjs

Lines changed: 0 additions & 4 deletions
This file was deleted.

lint-staged.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* @filename: lint-staged.config.js
3+
* @type {import('lint-staged').Configuration}
4+
*/
5+
export default {
6+
'*.+(js|jsx|ts|tsx)': ['pnpm lint', () => 'pnpm typecheck'],
7+
'*.+(js|jsx|json|yml|yaml|css|ts|tsx|md|graphql|mdx)': ['pnpm format'],
8+
}

0 commit comments

Comments
 (0)