Skip to content

Commit

Permalink
fix: publish npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Mararok committed Mar 10, 2024
1 parent fed5bcf commit 37b142e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
- name: Yarn install
uses: hexancore/yarn-ci-install@ba9baf131eba84b6c86efb46375a530a3098bb04

- name: Build
run: yarn build

# Publish package
- name: Publish
shell: bash
Expand Down
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## 0.1.3

### Fixed

- publish action

## 0.1.2

### Changed
Expand All @@ -24,6 +30,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- Initial

[unreleased] https://github.com/hexancore/cli/compare/0.1.1...HEAD
[unreleased] https://github.com/hexancore/cli/compare/0.1.3...HEAD
[0.1.3] https://github.com/hexancore/core/compare/0.1.2...0.1.3
[0.1.2] https://github.com/hexancore/core/compare/0.1.1...0.1.2
[0.1.1] https://github.com/hexancore/core/compare/0.1.0...0.1.1
[0.1.0] https://github.com/hexancore/cli/releases/tag/0.1.0
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hexancore/cli",
"version": "0.1.2",
"version": "0.1.3",
"engines": {
"node": ">=20"
},
Expand All @@ -14,7 +14,7 @@
"main": "./lib/index.js",
"repository": {
"type": "git",
"url": "https://github.com/hexancore/cli.git"
"url": "git+https://github.com/hexancore/cli.git"
},
"publishConfig": {
"access": "public"
Expand All @@ -33,7 +33,6 @@
"test:watch": "jest --config .jestrc.json --runInBand --watchAll",
"test:cov": "jest --config .jestrc.json --coverage",
"test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --config .jestrc.json --runInBand",
"prepublish": "yarn run build"
},
"dependencies": {
"@commander-js/extra-typings": "^12.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/Command/Package/PackageBumpVersionCommandHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class PackageBumpVersionCommandHandler {
if (typeof repositoryUrl !== 'string') {
return ERR('core.cli.package.empty_repository_url');
}
return OK(repositoryUrl.replace('.git', ''));
return OK(repositoryUrl.replace('.git', '').replace('git+', ''));
}

private updateChangelog(repositoryUrl: string, newVersion: string, releaseDate): AR<string> {
Expand Down

0 comments on commit 37b142e

Please sign in to comment.