Skip to content

Commit

Permalink
chore(action): 调整github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
czfadmin committed Apr 3, 2024
1 parent c8fc6a1 commit 93a2cbf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/commitlint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ jobs:
- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: yarn commitlint --last --verbose
run: npx commitlint --last --verbose

- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: yarn commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@ name: Publish to vscode extension marketplace

on:
release:
types: [published]
types: [released]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
env:
VSCE_AIUTH_TOKEN: ${{secrets.RELEASE_TOEKN}}

strategy:
matrix:
Expand All @@ -32,4 +30,4 @@ jobs:
- name: 'Publish to marketplace'
run: 'yarn publish -p $VSCE_AIUTH_TOKEN'
env:
VSCE_AIUTH_TOKEN: ${{secrets.RELEASE_TOEKN}}
VSCE_AIUTH_TOKEN: ${{secrets.RELEASE_TOEKN}}

0 comments on commit 93a2cbf

Please sign in to comment.