Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 }}
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading