Skip to content

Commit

Permalink
New: Create first release with semantic-release
Browse files Browse the repository at this point in the history
  • Loading branch information
0x464e committed Jul 18, 2023
1 parent 24f5fb8 commit a40c0f6
Show file tree
Hide file tree
Showing 4 changed files with 6,380 additions and 292 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Semantic Release

on:
push:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
38 changes: 38 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "eslint",
"releaseRules": [
{ "tag": "Docs", "message": "*README*", "release": "patch" }
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "eslint"
}
],
[
"@semantic-release/npm",
{
"tarballDir": "tarballs"
}
],
[
"@semantic-release/github",
{
"failComment": false,
"addReleases": "bottom",
"assets": [
{
"path": "tarballs/*.tgz",
"name": "slideshow-video.tgz"
}
]
}
]
]
}
Loading

0 comments on commit a40c0f6

Please sign in to comment.