diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..c08e141 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,27 @@ +name: NPM Deploy + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup Node.js + uses: actions/setup-node@v2 + with: + node-version: '18' + + - name: Install dependencies + run: npm install + + - name: Publish to npm + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} diff --git a/package-lock.json b/package-lock.json index 1de34b7..6f8ba38 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@reyco1/release-notes", - "version": "1.0.1", + "version": "1.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@reyco1/release-notes", - "version": "1.0.1", + "version": "1.0.2", "license": "MIT", "dependencies": { "node-fetch": "^3.3.2", diff --git a/package.json b/package.json index 708c3c4..edff026 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,13 @@ { "name": "@reyco1/release-notes", - "version": "1.0.1", + "version": "1.0.2", "description": "Generates formatted release notes from Git commit logs using OpenAI's API.", "main": "index.js", "private": false, "type": "module", + "engines": { + "node": ">=18.0.0" + }, "bin": { "release-notes": "./index.js" }, diff --git a/prompt.txt b/prompt.txt index 89b2317..0a4407e 100644 --- a/prompt.txt +++ b/prompt.txt @@ -2,7 +2,7 @@ Steps to Format Git Commit Logs into Release Notes: 1. Input Preparation: - User will provide all commit logs relevant for the release notes. - - Ensure each log entry follows the standard format: "(v[version number]) [Commit message]". + - Ensure each log entry follows the standard format: "[dateTime] (v[version number]) [Commit message]". 2. Summary Creation: - Begin by summarizing the main achievements or features introduced in this batch of commits. Highlight any major enhancements, critical bug fixes, or significant performance improvements. diff --git a/release-notes.txt b/release-notes.txt deleted file mode 100644 index f860282..0000000 --- a/release-notes.txt +++ /dev/null @@ -1,5 +0,0 @@ -Release Notes: - -Version 1.0.62 - 1.0.61 (April 12, 2024) -- Process headlines updates. -- Enhanced caching features, including a force flag and improved handling of file naming conflicts. \ No newline at end of file diff --git a/version.json b/version.json index 3dd8f9b..da11bcf 100644 --- a/version.json +++ b/version.json @@ -1,5 +1,5 @@ { "major": 1, "minor": 0, - "patch": 1 + "patch": 2 } \ No newline at end of file