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:
10
.github/workflows/CreateRelease.yml
vendored
10
.github/workflows/CreateRelease.yml
vendored
@@ -84,7 +84,7 @@ jobs:
|
|||||||
git checkout --orphan temp_branch
|
git checkout --orphan temp_branch
|
||||||
git reset
|
git reset
|
||||||
rm -f .gitignore
|
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 }}"
|
git commit -m "Prepare files for release ${{ env.VERSION }}"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
@@ -97,18 +97,12 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
# - name: Delete temporary branch
|
|
||||||
# id: delete_temp_branch
|
|
||||||
# run: |
|
|
||||||
# git checkout main
|
|
||||||
# git branch -D temp_branch
|
|
||||||
# shell: bash
|
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ env.VERSION }}
|
tag_name: ${{ env.VERSION }}
|
||||||
name: Release ${{ env.VERSION }}
|
name: Release ${{ env.VERSION }}
|
||||||
body_path: release_notes.md
|
body_path: release_notes.md
|
||||||
|
prerelease: true
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
11
package.json
11
package.json
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ts-injex",
|
"name": "ts-injex",
|
||||||
"version": "0.0.4",
|
"version": "0.0.5",
|
||||||
"description": "",
|
"description": "",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
@@ -36,5 +36,12 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"eslint-plugin-prettier": "^5.2.1",
|
"eslint-plugin-prettier": "^5.2.1",
|
||||||
"jest-environment-jsdom": "^29.7.0"
|
"jest-environment-jsdom": "^29.7.0"
|
||||||
}
|
},
|
||||||
|
"files": [
|
||||||
|
"dist/**/*",
|
||||||
|
"src/**/*",
|
||||||
|
"README.md",
|
||||||
|
"LICENSE",
|
||||||
|
"package.json"
|
||||||
|
]
|
||||||
}
|
}
|
Reference in New Issue
Block a user