Skip to content

Commit

Permalink
chore: add release
Browse files Browse the repository at this point in the history
  • Loading branch information
smnbbrv committed Dec 10, 2024
1 parent 8954b27 commit f34429d
Show file tree
Hide file tree
Showing 5 changed files with 8,206 additions and 2,257 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/ci.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and publish
on:
push:
branches:
- main

# pull_request:
# branches:
# - main

jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '20'

- name: Install dependencies
run: npm install

- name: Run lint
run: npm run lint

- name: Run tests
run: npm run coverage

- name: Build project
run: npm run build

- name: Build project
run: npm run release
17 changes: 17 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md"
],
"message": "chore: release ${nextRelease.version} [ci skip]"
}
]
]
}
Loading

0 comments on commit f34429d

Please sign in to comment.