Skip to content

Commit 1ccc60f

Browse files
committed
feat: proper version management
1 parent dabc703 commit 1ccc60f

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ jobs:
4040
- name: Test
4141
run: bun run test
4242

43+
- name: "Set version from tag"
44+
run: |
45+
VERSION=${GITHUB_REF#refs/tags/v}
46+
echo "Setting version to $VERSION"
47+
npm version $VERSION --no-git-tag-version --allow-same-version
48+
4349
- name: "Publish"
4450
env:
4551
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "elysia-csrf",
3-
"version": "0.0.3",
3+
"version": "0.0.0",
44
"description": "CSRF protection plugin for Elysia with cookie-based token storage",
55
"main": "src/index.ts",
66
"module": "src/index.ts",

0 commit comments

Comments
 (0)