Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
fix(release): normalize package artifact version
This commit is contained in:
@@ -68,10 +68,14 @@ jobs:
|
|||||||
echo "version=$version" >> "$GITHUB_OUTPUT"
|
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Set package version
|
- name: Set package version
|
||||||
|
id: package
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ steps.version.outputs.version }}
|
VERSION: ${{ steps.version.outputs.version }}
|
||||||
run: npm version "$VERSION" --no-git-tag-version --allow-same-version
|
run: |
|
||||||
|
npm version "$VERSION" --no-git-tag-version --allow-same-version
|
||||||
|
version=$(node -p "require('./package.json').version")
|
||||||
|
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
@@ -89,7 +93,7 @@ jobs:
|
|||||||
if: matrix.platform == 'windows'
|
if: matrix.platform == 'windows'
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ steps.version.outputs.version }}
|
VERSION: ${{ steps.package.outputs.version }}
|
||||||
run: |
|
run: |
|
||||||
$required = @(
|
$required = @(
|
||||||
"dist/desktop/SketchForge-Setup-$env:VERSION-x64.exe",
|
"dist/desktop/SketchForge-Setup-$env:VERSION-x64.exe",
|
||||||
@@ -106,7 +110,7 @@ jobs:
|
|||||||
if: matrix.platform == 'linux'
|
if: matrix.platform == 'linux'
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
VERSION: ${{ steps.version.outputs.version }}
|
VERSION: ${{ steps.package.outputs.version }}
|
||||||
run: |
|
run: |
|
||||||
test -f "dist/desktop/SketchForge-$VERSION-x86_64.AppImage"
|
test -f "dist/desktop/SketchForge-$VERSION-x86_64.AppImage"
|
||||||
test -f dist/desktop/latest-linux.yml
|
test -f dist/desktop/latest-linux.yml
|
||||||
@@ -167,6 +171,16 @@ jobs:
|
|||||||
echo "version=$version" >> "$GITHUB_OUTPUT"
|
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||||
echo "tag=$tag" >> "$GITHUB_OUTPUT"
|
echo "tag=$tag" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
|
- name: Normalize package version
|
||||||
|
id: package
|
||||||
|
shell: bash
|
||||||
|
env:
|
||||||
|
VERSION: ${{ steps.version.outputs.version }}
|
||||||
|
run: |
|
||||||
|
npm version "$VERSION" --no-git-tag-version --allow-same-version
|
||||||
|
version=$(node -p "require('./package.json').version")
|
||||||
|
echo "version=$version" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
- name: Ensure release tag exists
|
- name: Ensure release tag exists
|
||||||
if: github.event_name == 'workflow_dispatch'
|
if: github.event_name == 'workflow_dispatch'
|
||||||
env:
|
env:
|
||||||
@@ -223,7 +237,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ github.token }}
|
GH_TOKEN: ${{ github.token }}
|
||||||
TAG: ${{ steps.version.outputs.tag }}
|
TAG: ${{ steps.version.outputs.tag }}
|
||||||
VERSION: ${{ steps.version.outputs.version }}
|
VERSION: ${{ steps.package.outputs.version }}
|
||||||
run: |
|
run: |
|
||||||
assets=$(gh release view "$TAG" --json isDraft,assets)
|
assets=$(gh release view "$TAG" --json isDraft,assets)
|
||||||
test "$(jq -r '.isDraft' <<< "$assets")" = "true"
|
test "$(jq -r '.isDraft' <<< "$assets")" = "true"
|
||||||
|
|||||||
Reference in New Issue
Block a user