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"
|
||||
|
||||
- name: Set package version
|
||||
id: package
|
||||
shell: bash
|
||||
env:
|
||||
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
|
||||
run: npm ci
|
||||
@@ -89,7 +93,7 @@ jobs:
|
||||
if: matrix.platform == 'windows'
|
||||
shell: pwsh
|
||||
env:
|
||||
VERSION: ${{ steps.version.outputs.version }}
|
||||
VERSION: ${{ steps.package.outputs.version }}
|
||||
run: |
|
||||
$required = @(
|
||||
"dist/desktop/SketchForge-Setup-$env:VERSION-x64.exe",
|
||||
@@ -106,7 +110,7 @@ jobs:
|
||||
if: matrix.platform == 'linux'
|
||||
shell: bash
|
||||
env:
|
||||
VERSION: ${{ steps.version.outputs.version }}
|
||||
VERSION: ${{ steps.package.outputs.version }}
|
||||
run: |
|
||||
test -f "dist/desktop/SketchForge-$VERSION-x86_64.AppImage"
|
||||
test -f dist/desktop/latest-linux.yml
|
||||
@@ -167,6 +171,16 @@ jobs:
|
||||
echo "version=$version" >> "$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
|
||||
if: github.event_name == 'workflow_dispatch'
|
||||
env:
|
||||
@@ -223,7 +237,7 @@ jobs:
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
TAG: ${{ steps.version.outputs.tag }}
|
||||
VERSION: ${{ steps.version.outputs.version }}
|
||||
VERSION: ${{ steps.package.outputs.version }}
|
||||
run: |
|
||||
assets=$(gh release view "$TAG" --json isDraft,assets)
|
||||
test "$(jq -r '.isDraft' <<< "$assets")" = "true"
|
||||
|
||||
Reference in New Issue
Block a user