Skip to content

Commit

Permalink
First public release
Browse files Browse the repository at this point in the history
  • Loading branch information
raohmaru committed Jul 9, 2023
1 parent 8cc96c7 commit 5688287
Show file tree
Hide file tree
Showing 6 changed files with 147 additions and 3 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release

on:
push:
branches:
- main

jobs:
release:
name: Test, build and release new version
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup node.js
uses: actions/setup-node@v3
with:
node-version: 16

- name: Install dependencies
run: npm ci

- name: Build Paprika 🌶
run: npm run build

- name: Run tests
run: npm test --if-present

- name: Create release
uses: cycjimmy/semantic-release-action@v3
with:
dry_run: false
extra_plugins: |
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_AUTHOR_NAME: github-actions
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: github-actions
GIT_COMMITTER_EMAIL: [email protected]
CI: true
15 changes: 15 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"dryRun": true,
"branches": ["master"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": ["CHANGELOG.md", "package.json", "package-lock.json", "dist", "docs"]
}
]
]
}
Empty file added CHANGELOG.md
Empty file.
85 changes: 85 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# Contributing

Thanks for choosing to contribute to Paprika 🌶!

You will find here a set of guidelines to follow when contributing to this project.

## Have A Question?

Start by filing an issue. The existing committers on this project work to reach consensus around project direction and issue solutions within issue threads (when appropriate).

## Automated Release

### Release
Releases are automated and based on [Angular Commit Message Conventions in commits](https://github.com/angular/angular/blob/master/CONTRIBUTING.md#commit-message-header).

The commit messages are used to build:
* Release notes
* Changelog updates
* NPM package semver

### Commit Message Format
We have very precise rules over how the Git commit messages must be formatted. This format leads to a easier read of the commit history.

Each commit message consists of a header, a body, and a footer. Each must conform to the formats explained below.

```
<header>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>
```

#### Commit Message Header
Mandatory.
```
<type>(<scope>): <short summary>
│ │ │
│ │ └─⫸ Summary in present tense. Not capitalized. No period at the end.
│ │
│ └─⫸ Commit Scope (optional): config|tween|easing|changelog
└─⫸ Commit Type: build|ci|docs|feat|fix|perf|refactor|test
```

#### Commit Message Body

Optional. Use the imperative, present tense. It must be at least 20 characters long

Explain the motivation for the change. This commit message should explain why you are making the change.

#### Commit Message Footer

Optional. The footer can contain information about breaking changes and deprecations, and reference to GitHub issues, Jira tickets, and other PRs that this commit closes or is related to. For example:

```
BREAKING CHANGE: <breaking change summary>
<BLANK LINE>
<breaking change description + migration instructions>
<BLANK LINE>
<BLANK LINE>
Fixes #<issue number>
```

or

```
DEPRECATED: <what is deprecated>
<BLANK LINE>
<deprecation description + recommended update path>
<BLANK LINE>
<BLANK LINE>
Closes #<pr number>
```

Breaking Change section should start with the phrase "BREAKING CHANGE: " followed by a summary of the breaking change, a blank line, and a detailed description of the breaking change (with migration instructions).

**A Breaking Change will trigger a major release.**

A Deprecation section should start with "DEPRECATED: " followed by a short description of what is deprecated, a blank line, and a detailed description of the deprecation that also mentions the recommended update path.

## Code Reviews

All submissions should come in the form of pull requests and need to be reviewed by project committers. Please always open a related issue before creating a pull Request.
Read [GitHub's pull request documentation](https://help.github.com/articles/about-pull-requests/) for more information on sending pull requests.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paprika-tween",
"version": "0.9.0",
"version": "1.0.0",
"description": "Spicy JavaScript animation engine",
"browser": "./dist/paprika-tween.min.js",
"main": "./dist/paprika-tween.min.js",
Expand Down

0 comments on commit 5688287

Please sign in to comment.