Skip to content

Commit 720032f

Browse files
authored
fix: update package version to 0.0.0 and adjust npm publish settings (#10)
1 parent 80c3db6 commit 720032f

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,14 @@ jobs:
7777
- name: Install dependencies
7878
run: npm ci
7979

80+
- name: Set version from git tag (no commit)
81+
run: |
82+
TAG="${GITHUB_REF_NAME}" # e.g. v0.0.0-alpha.2
83+
VER="${TAG#v}" # strip leading v
84+
npm version "$VER" --no-git-tag-version
85+
8086
- name: Build package
8187
run: npm run build
8288

8389
- name: Publish to npm
84-
run: npm publish
90+
run: npm publish --access public

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "md-xformer",
3-
"version": "0.0.0-alpha.1",
3+
"version": "0.0.0",
44
"description": "A CLI tool that converts Markdown into template-based HTML.",
55
"license": "MIT",
66
"author": "shm11C3",
@@ -25,10 +25,6 @@
2525
"engines": {
2626
"node": ">=20"
2727
},
28-
"publishConfig": {
29-
"access": "public",
30-
"tag": "alpha"
31-
},
3228
"scripts": {
3329
"build": "tsup",
3430
"dev": "node dist/cli.js",

0 commit comments

Comments
 (0)