From ad4a8fd8c60d91ee14afeefd10c8b3d9defcb8e6 Mon Sep 17 00:00:00 2001 From: Max P Date: Wed, 14 Aug 2024 22:34:15 +0200 Subject: [PATCH] Include additional files in release and mark as prerelease Added `src` folder and `tsconfig.json` to the release preparation to ensure all necessary files are included. Uncommented the deletion of the temporary branch to streamline the workflow. Set releases to be marked as prereleases automatically. Updated version in `package.json` to 0.0.5 and included a `files` field to specify which files to include in the package. --- .github/workflows/CreateRelease.yml | 10 ++-------- package.json | 11 +++++++++-- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/CreateRelease.yml b/.github/workflows/CreateRelease.yml index bb4ac0a..9e353db 100644 --- a/.github/workflows/CreateRelease.yml +++ b/.github/workflows/CreateRelease.yml @@ -84,7 +84,7 @@ jobs: git checkout --orphan temp_branch git reset rm -f .gitignore - git add README.md package.json LICENSE dist/ + git add README.md package.json LICENSE dist/ src/ tsconfig.json git commit -m "Prepare files for release ${{ env.VERSION }}" shell: bash @@ -97,18 +97,12 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} shell: bash - # - name: Delete temporary branch - # id: delete_temp_branch - # run: | - # git checkout main - # git branch -D temp_branch - # shell: bash - - name: Release uses: softprops/action-gh-release@v2 with: tag_name: ${{ env.VERSION }} name: Release ${{ env.VERSION }} body_path: release_notes.md + prerelease: true env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/package.json b/package.json index 64bfb60..39c747a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ts-injex", - "version": "0.0.4", + "version": "0.0.5", "description": "", "type": "module", "main": "./dist/index.js", @@ -36,5 +36,12 @@ "dependencies": { "eslint-plugin-prettier": "^5.2.1", "jest-environment-jsdom": "^29.7.0" - } + }, + "files": [ + "dist/**/*", + "src/**/*", + "README.md", + "LICENSE", + "package.json" + ] } \ No newline at end of file