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.
This commit is contained in:
2024-08-14 22:34:15 +02:00
parent de45d8e791
commit ad4a8fd8c6
2 changed files with 11 additions and 10 deletions

View File

@@ -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 }}