Skip to content

Commit f69d890

Browse files
committed
chore(release): v0.5.1
1 parent eb64311 commit f69d890

File tree

2 files changed

+3
-18
lines changed

2 files changed

+3
-18
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,6 @@ jobs:
2020
- run: pnpm install
2121
- name: Build
2222
run: pnpm run build
23-
- name: Run tests
24-
run: pnpm run test
25-
- name: Update package.json
26-
shell: pwsh
27-
run: |
28-
$env:RELEASE_VERSION = $env:GITHUB_REF.split('/')[2]
29-
echo "RELEASE_VERSION=$env:RELEASE_VERSION" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf-8 -Append
30-
$content = Get-Content .\package.json
31-
$content = $content | foreach-object { $_ -replace '(?<prefix>^.+"version": ")(.+)(?<suffix>",)$', "`${prefix}$env:RELEASE_VERSION`${suffix}" }
32-
$content | foreach-object { [System.Text.RegularExpressions.Regex]::Unescape($_) } | Out-File .\package.json -Force -Encoding ascii
33-
- uses: stefanzweifel/git-auto-commit-action@v4
34-
with:
35-
commit_message: "ci(package-json): :bookmark: Bumped package.json version to ${{ env.RELEASE_VERSION }}"
36-
commit_user_email: [email protected]
37-
branch: main
3823
- run: pnpm publish
3924
env:
4025
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@itpropro/tree-structure-ts",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"type": "module",
55
"packageManager": "[email protected]",
66
"files": [
@@ -19,7 +19,7 @@
1919
"coverage": "vitest run --coverage",
2020
"build": "unbuild",
2121
"typecheck": "tsc --noEmit",
22-
"bump": "changelogen --bump",
22+
"bump": "changelogen --bump --release",
2323
"publish": "pnpm publish",
2424
"docs": "typedoc --plugin typedoc-plugin-markdown --entryDocument README.md --readme README.md --out docs --githubPages false src/index.ts"
2525
},
@@ -36,4 +36,4 @@
3636
"unbuild": "^1.0.2",
3737
"vitest": "^0.25.5"
3838
}
39-
}
39+
}

0 commit comments

Comments
 (0)