Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ name: Release

on: workflow_dispatch

permissions:
contents: write # For git operations
id-token: write # < REQUIRED FOR OIDC

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # For git operations
id-token: write # < REQUIRED FOR OIDC
steps:
- name: Checkout source code
uses: actions/checkout@v4
Expand All @@ -27,7 +26,7 @@ jobs:
git config --global user.email "volatilization@yandex.ru"
git config --global user.name "volatilization"
- name: Run release
run: npx release-it --ci --no-increment --no-git
run: npm run release:no-increment
env:
RELEASE_IT_GITHUB_TOKEN: ${{ secrets.RELEASE_IT_GITHUB_TOKEN }}
COVERAGE_MIN_PERCENT: ${{ vars.COVERAGE_MIN_PERCENT }}
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ node_modules/

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

#scratches
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Proxy classes for creating a http server
There are all `Server` classes feature.
Your endpoints should implement `Endpoint` class interface
(`get route()` and `async handle(request)` methods).
Also you can add own handlers (`handle(reqestStream, responseStream)`).
Also you can add own handlers (implements `handle(reqestStream, responseStream)`).
`Handler` is a top level logic object, who intrreact with IO streams directly.
`options` is a `node:http` options, who pass when server starting.

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.

10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "objective-http",
"version": "2.0.2",
"version": "2.1.0",
"description": "Proxy classes for creating a http server",
"keywords": [
"web",
Expand All @@ -14,19 +14,23 @@
"email": "volatilization@yandex.ru"
},
"repository": {
"url": "git+https://github.com/volatilization/objective-http.git"
"type": "git",
"url": "https://github.com/volatilization/objective-http"
},
"license": "LGPL-3.0-only",
"scripts": {
"lint": "eslint",
"test": "node --test --experimental-test-coverage --test-reporter=spec src/test/*.js src/test/**/*.js",
"test:coverage": "node scripts/coverage.js",
"release": "release-it --config release-it.config.mjs",
"release:no-increment": "release-it --config release-it.config.mjs --no-increment",
"release:no-increment": "release-it --ci --config release-it.config.mjs --no-increment --no-git",
"dist:build": "node scripts/build.js",
"dist:cleanup": "node scripts/cleanup.js"
},
"main": "src/js/index.js",
"publishConfig": {
"access": "public"
},
"devDependencies": {
"@dotenvx/dotenvx": "^1.57.5",
"@eslint/js": "^9.35.0",
Expand Down
1 change: 1 addition & 0 deletions release-it.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export default {
},
github: {
release: true,
tokenRef: 'RELEASE_IT_GITHUB_TOKEN',
},
npm: {
publish: true,
Expand Down
Loading