Skip to content

Commit

Permalink
Merge pull request #15 from hirosystems/master
Browse files Browse the repository at this point in the history
master to develop
  • Loading branch information
rafaelcr authored Oct 31, 2023
2 parents 79a08a4 + 49efc26 commit 83acd01
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 4 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,40 @@ jobs:
- name: Teardown integration environment
run: npm run testenv:stop
if: always()

build-publish:
runs-on: ubuntu-latest
needs:
- lint
- test
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
fetch-depth: 0
persist-credentials: false

- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'

- name: Install deps
run: npm ci --audit=false

- name: Build
run: npm run build

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
# Only run on non-PR events or only PRs that aren't from forks
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN || secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
SEMANTIC_RELEASE_PACKAGE: ${{ github.event.repository.name }}
with:
semantic_version: 19
extra_plugins: |
@semantic-release/[email protected]
@semantic-release/[email protected]
[email protected]
23 changes: 23 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"branches": [
"master"
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits"
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits"
}
],
"@semantic-release/npm",
"@semantic-release/github",
"@semantic-release/changelog",
"@semantic-release/git"
]
}
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
## [1.2.2](https://github.com/hirosystems/api-toolkit/compare/v1.2.1...v1.2.2) (2023-10-27)


### Bug Fixes

* do not include tests in build output ([caca64b](https://github.com/hirosystems/api-toolkit/commit/caca64be639741b489c2447d7609b4d91539a494))

## [1.2.1](https://github.com/hirosystems/api-toolkit/compare/v1.2.0...v1.2.1) (2023-10-27)


### Bug Fixes

* build lib before publishing to npm ([#14](https://github.com/hirosystems/api-toolkit/issues/14)) ([a7d918f](https://github.com/hirosystems/api-toolkit/commit/a7d918f5b2a9a4f9ca36b83bfd7b82ac4504a670))

## [1.2.0](https://github.com/hirosystems/api-toolkit/compare/v1.1.0...v1.2.0) (2023-10-26)


### Features

* add fastify helpers ([#9](https://github.com/hirosystems/api-toolkit/issues/9)) ([f923ce4](https://github.com/hirosystems/api-toolkit/commit/f923ce4a741665ef0ece8339694d03e2dae54338))
* expand tools with Stacks API helpers ([#10](https://github.com/hirosystems/api-toolkit/issues/10)) ([79a08a4](https://github.com/hirosystems/api-toolkit/commit/79a08a4417b65981878d31b7f13a5dfacf591e15))
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# API Toolkit

/ / ▶ API Toolkit
/ --- / A comprehensive collection of tools designed by Hiro to simplify common tasks in
/ / API development.

[![NPM Package](https://img.shields.io/npm/v/@hirosystems/api-toolkit.svg?style=flat-square)](https://www.npmjs.org/package/@hirosystems/api-toolkit)

The API Toolkit Library is a comprehensive collection of tools designed by Hiro to simplify common
tasks in API development. This library provides functionalities for database management, application
Expand Down
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.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hirosystems/api-toolkit",
"version": "1.1.0",
"version": "1.2.2",
"description": "API development toolkit",
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
Expand Down Expand Up @@ -35,6 +35,9 @@
},
"homepage": "https://github.com/hirosystems/api-toolkit#readme",
"prettier": "@stacks/prettier-config",
"engines": {
"node": ">=18"
},
"devDependencies": {
"@commitlint/cli": "^17.5.0",
"@commitlint/config-conventional": "^17.4.4",
Expand Down
1 change: 1 addition & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": "./tsconfig.json",
"exclude": [
"./src/**/__tests__/**"
]
}

0 comments on commit 83acd01

Please sign in to comment.