update workflow
All checks were successful
Build ESLint Config and Release / build-and-release (push) Successful in 8s
All checks were successful
Build ESLint Config and Release / build-and-release (push) Successful in 8s
This commit is contained in:
@@ -24,23 +24,12 @@ jobs:
|
|||||||
- name: Build
|
- name: Build
|
||||||
run: bun run build
|
run: bun run build
|
||||||
|
|
||||||
- name: Verify dist
|
|
||||||
run: |
|
|
||||||
if [ ! -f "dist/index.js" ]; then
|
|
||||||
echo "ERROR: dist/index.js not found"
|
|
||||||
ls -la dist
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Get version from package.json
|
- name: Get version from package.json
|
||||||
id: pkg
|
id: pkg
|
||||||
run: |
|
run: |
|
||||||
VERSION=$(node -p "require('./package.json').version")
|
VERSION=$(node -p "require('./package.json').version")
|
||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Prepare release assets
|
|
||||||
run: cp dist/index.js .
|
|
||||||
|
|
||||||
- name: Create git tag
|
- name: Create git tag
|
||||||
run: |
|
run: |
|
||||||
git config user.name "gitea-actions[bot]"
|
git config user.name "gitea-actions[bot]"
|
||||||
@@ -52,4 +41,4 @@ jobs:
|
|||||||
uses: akkuman/gitea-release-action@v1
|
uses: akkuman/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ steps.pkg.outputs.version }}
|
tag_name: ${{ steps.pkg.outputs.version }}
|
||||||
files: /dist/index.js
|
files: dist/index.js
|
||||||
|
|||||||
Reference in New Issue
Block a user