diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 59476eb..7136708 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,9 +37,17 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_REPO: ${{ github.repository }} run: | - $TAG = ${{ github.ref }}.replace('refs/tags/', '') + TAG=${GITHUB_REF_NAME} gh release create $TAG 'duke-prompts.zip#Duke Prompts' --title "Release $TAG" --generate-notes + - name: Bump the version in package.json with the tag + run: | + TAG=${GITHUB_REF_NAME} + npm version $TAG --no-git-tag-version + git add package.json + git commit -m "Bump version to $TAG" + git push + - name: Publish to npm uses: actions/checkout@v5 @@ -49,6 +57,6 @@ jobs: node-version: "20.x" registry-url: "https://registry.npmjs.org/" - run: npm ci - - run: npm publish --provenance --access public + - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 601c051..752faea 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { - "name": "duke", - "version": "1.0.0", - "description": "A comprehensive, type-safe real-time notification system for e-commerce applications using Supabase and React", + "name": "tendo-notifier", + "version": "0.1.7", + "description": "A comprehensive, type-safe real-time notification system for e-commerce applications using Tendo and React", "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts",