Skip to content

Commit

Permalink
chore: release version 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mdy-m committed Sep 15, 2024
1 parent 2149b07 commit c31ba81
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 13 deletions.
13 changes: 5 additions & 8 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
node_modules/
lib/
examples/
tests/
test/
__test__/
examples/
coverage/
docs/
*.md
*.pdf
.git/
.gitignore
.env
.github/
.prettierrc
.eslintrc
.github/
tsconfig.json
scripts/
benchmark/
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ To get started with `@medishn/gland`, follow these steps:
You can add middleware functions to your Gland instance:

```typescript
import { Context } from '@medishn/gland';
import gland, { Context,NxtFunction } from '@medishn/gland';
const g = new gland();
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"test:performance": "mocha --require ts-node/register test/performance/*.spec.ts",
"benchmark": "ts-node ./benchmark/gland.ts",
"build": "rm -r dist/* & tsc",
"release": "scripts/release.sh"
"chmod": "chmod +x ./scripts/release.sh",
"release": "npm run chmod && ./scripts/release.sh"
},
"repository": {
"type": "git",
Expand Down
6 changes: 3 additions & 3 deletions scripts/release.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ npm run build
VERSION=$(node -p "require('./package.json').version")

CHANGELOG_CONTENT=$(cat docs/CHANGELOG.md)
git tag -a "v${VERSION}" -m "Release ${VERSION}: ${CHANGELOG_CONTENT}"
npm publish --access public
git add .
git tag -a "v${VERSION}" -m "Release ${VERSION}: ${CHANGELOG_CONTENT}"
git commit -m "chore: release version ${VERSION}"
git push origin main --tags
git push origin main --tags
npm publish --access public

0 comments on commit c31ba81

Please sign in to comment.