Skip to content

Commit

Permalink
🐎 ci: 测试ci
Browse files Browse the repository at this point in the history
  • Loading branch information
hmydgz committed Jun 18, 2024
1 parent e17143e commit 7f449e1
Showing 1 changed file with 19 additions and 17 deletions.
36 changes: 19 additions & 17 deletions .github/workflows/build.adtion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,29 @@ jobs:
VERSION=${TAG_NAME#v}
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Print version
run: |
echo "The extracted version is: $VERSION"
# - name: Print version
# run: |
# echo "The extracted version is: $VERSION"
# env:
# VERSION: ${{ env.VERSION }}

- name: 更新 NPM 版本号
run: npm version $VERSION
env:
VERSION: ${{ env.VERSION }}

# - name: 更新 NPM 版本号
# run: npm version $VERSION

# - name: Configure git
# run: |
# git config --global user.name 'github-actions[bot]'
# git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- name: Configure git
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
# - name: Commit changes
# run: |
# git add package.json
# git commit -m "Update version to $VERSION"
# git push
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Commit changes
run: |
git add package.json
git commit -m "Update version to $VERSION"
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: 编译上传
# run: vsce publish -p ${{ secrets.VSCODE_PUBLISHER_TOKEN }}

0 comments on commit 7f449e1

Please sign in to comment.