mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-14 18:01:06 +00:00
chore: improve lint, release workflows (#1627)
* Add standard-version to automate releases * Remove husky * Add lint script; run lint in GitHub Actions * Run lint script * Add Enrico to contributors
This commit is contained in:
parent
c1c8309443
commit
6d2e21f027
12 changed files with 1164 additions and 460 deletions
|
@ -2,6 +2,19 @@
|
|||
|
||||
Before submitting a pull request (PR), consider [filing an issue](https://github.com/carbon-design-system/carbon-components-svelte/issues) to gain clarity and direction.
|
||||
|
||||
- [Prerequisites](#prerequisites)
|
||||
- [Project set-up](#project-set-up)
|
||||
- [Install](#install)
|
||||
- [Documentation set-up](#documentation-set-up)
|
||||
- [Development workflow](#development-workflow)
|
||||
- [Component Format](#component-format)
|
||||
- [Editing a component](#editing-a-component)
|
||||
- [Creating a component](#creating-a-component)
|
||||
- [Run `yarn build:docs`](#run-yarn-builddocs)
|
||||
- [Submit a Pull Request](#submit-a-pull-request)
|
||||
- [Sync Your Fork](#sync-your-fork)
|
||||
- [Submit a PR](#submit-a-pr)
|
||||
|
||||
## Prerequisites
|
||||
|
||||
- [Node.js](https://nodejs.org/en/download/package-manager/) (version >=12)
|
||||
|
@ -145,3 +158,34 @@ git merge upstream/master
|
|||
### Submit a PR
|
||||
|
||||
After you've pushed your changes to remote, submit your PR. Make sure you are comparing `<YOUR_USER_ID>/feature` to `origin/master`.
|
||||
|
||||
## Maintainer guide
|
||||
|
||||
The following items only apply to project maintainers.
|
||||
|
||||
### Release
|
||||
|
||||
Locally, while on `master` and the branch is clean, run `yarn release`. This command will:
|
||||
|
||||
- Build library and docs
|
||||
- Bump package.json version
|
||||
- Add notes to Changelog
|
||||
|
||||
This command will not create a commit nor tag. Afterwards, perform the following manually:
|
||||
|
||||
```sh
|
||||
# 1. Stage prepared files for a commit
|
||||
git add .
|
||||
|
||||
# 2. Commit based on the current version, either manually or with jq
|
||||
git commit -m "v$(jq -r '.version' package.json)"
|
||||
|
||||
# 3. Create a tag based on the current version, either manually or with `jq`:
|
||||
git tag "v$(jq -r '.version' package.json)"
|
||||
|
||||
# 4. Push files, then publish
|
||||
git push
|
||||
npm publish
|
||||
|
||||
# 5. Generate release notes on GitHub, and comment on issues and pull requests
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue