Skip to content

新的 #120

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
git commit -m ${{ github.event.inputs.change }}
git push
- name: needpr
if: ${{ github.event.inputs.pr }}
if: ${{ inputs.pr != '' && inputs.pr || true }}
run: |
gh pr create -B main --title 'Merge release${{ github.event.inputs.tag }} into main' --body 'Created by Github action'

Expand All @@ -58,13 +58,19 @@ jobs:
needs: first
runs-on: ubuntu-latest
timeout-minutes: 30
if: ${{ inputs.mt }}
if: ${{ inputs.mt != '' && inputs.mt || true }}
steps:
- uses: actions/checkout@v2
- name: updatepackage
if: github.event.inputs.tag != ''
run: |
sed -i "s/\"version\":.*$/\"version\": \"${{ github.event.inputs.tag }}\",/" package.json

- name: change
if: github.event.inputs.change != ''
run: |
echo -e "## version ${{ github.event.inputs.tag }}\n\n- ${{ github.event.inputs.change }}\n\n$(cat CHANGELOG.md)" > CHANGELOG.md

- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
Expand All @@ -80,5 +86,5 @@ jobs:
run: npm i -g vsce

- name: Publish
if: ${{ inputs.mt }}
if: ${{ inputs.mt != '' && inputs.mt || true }}
run: vsce publish -p ${{ secrets.VSCE_PAT }}