Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc1ac29d

Browse files
committed
Review comments
1 parent116c94f commitc1ac29d

File tree

3 files changed

+36
-13
lines changed

3 files changed

+36
-13
lines changed

‎.github/workflows/ci.yaml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,6 @@ jobs:
4646
name:Package
4747
runs-on:ubuntu-22.04
4848
needs:[lint, test]
49-
outputs:
50-
packageName:${{ steps.setup.outputs.packageName }}
51-
version:${{ steps.version.outputs.version }}
5249
steps:
5350
-uses:actions/checkout@v5
5451

‎.github/workflows/pre-release.yaml‎

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@ jobs:
2323
with:
2424
node-version:"22"
2525

26-
-name:Install dependencies
27-
run:|
28-
yarn
29-
npm install -g @vscode/vsce
30-
3126
-name:Extract version from tag
3227
id:version
3328
run:|
@@ -37,6 +32,24 @@ jobs:
3732
echo "version=$VERSION" >> $GITHUB_OUTPUT
3833
echo "Pre-release version: $VERSION"
3934
35+
-name:Validate version matches package.json
36+
run:|
37+
TAG_VERSION="${{ steps.version.outputs.version }}"
38+
PACKAGE_VERSION=$(node -e "console.log(require('./package.json').version)")
39+
40+
if [ "$TAG_VERSION" != "$PACKAGE_VERSION" ]; then
41+
echo "Error: Tag version ($TAG_VERSION) does not match package.json version ($PACKAGE_VERSION)"
42+
echo "Please ensure the tag version matches the version in package.json"
43+
exit 1
44+
fi
45+
46+
echo "Version validation successful: $TAG_VERSION"
47+
48+
-name:Install dependencies
49+
run:|
50+
yarn
51+
npm install -g @vscode/vsce
52+
4053
-name:Setup package path
4154
id:setup
4255
run:|

‎.github/workflows/release.yaml‎

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ jobs:
2424
with:
2525
node-version:"22"
2626

27-
-name:Install dependencies
28-
run:|
29-
yarn
30-
npm install -g @vscode/vsce
31-
3227
-name:Extract version from tag
3328
id:version
3429
run:|
@@ -37,6 +32,24 @@ jobs:
3732
echo "version=$VERSION" >> $GITHUB_OUTPUT
3833
echo "Release version: $VERSION"
3934
35+
-name:Validate version matches package.json
36+
run:|
37+
TAG_VERSION="${{ steps.version.outputs.version }}"
38+
PACKAGE_VERSION=$(node -e "console.log(require('./package.json').version)")
39+
40+
if [ "$TAG_VERSION" != "$PACKAGE_VERSION" ]; then
41+
echo "Error: Tag version ($TAG_VERSION) does not match package.json version ($PACKAGE_VERSION)"
42+
echo "Please ensure the tag version matches the version in package.json"
43+
exit 1
44+
fi
45+
46+
echo "Version validation successful: $TAG_VERSION"
47+
48+
-name:Install dependencies
49+
run:|
50+
yarn
51+
npm install -g @vscode/vsce
52+
4053
-name:Setup package path
4154
id:setup
4255
run:|

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp