Skip to content
This repository was archived by the owner on Oct 17, 2023. It is now read-only.

Commit 19397c4

Browse files
feat(Semantic Release): Adds Semantic Release. (#7)
1 parent 69094e6 commit 19397c4

File tree

6 files changed

+10273
-1
lines changed

6 files changed

+10273
-1
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- beta
8+
9+
jobs:
10+
Release:
11+
name: Release
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: "14"
21+
cache: 'npm'
22+
23+
- name: Install dependencies
24+
run: npm ci
25+
26+
- name: Run Semantic Release
27+
run: npx semantic-release
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
**/vendor
2-
**/.phpunit.result.cache
2+
**/.phpunit.result.cache
3+
**/node_modules

.releaserc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"branches": [
3+
{name: 'main'},
4+
{name: 'beta', channel: 'beta', prerelease: true}
5+
],
6+
"plugins": [
7+
"@semantic-release/release-notes-generator",
8+
["@semantic-release/changelog",
9+
{
10+
"changelogFile": "CHANGELOG.md",
11+
"changelogTitle": "# Semantic Versioning Changelog"
12+
}
13+
],
14+
["@semantic-release/npm",
15+
{ "npmPublish": false}
16+
]
17+
]
18+
}

CHANGELOG.md

Whitespace-only changes.

0 commit comments

Comments
 (0)