Skip to content

Commit

Permalink
Dry run if skip_release is true
Browse files Browse the repository at this point in the history
  • Loading branch information
vanessa committed Nov 13, 2023
1 parent 34dc474 commit a1b720f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
GOOGLE_REFRESH_TOKEN: ${{ secrets.GOOGLE_REFRESH_TOKEN }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
run_install: false
Expand Down Expand Up @@ -61,10 +63,10 @@ jobs:
pnpm install -g chrome-webstore-upload-cli
- name: Build and package
id: build_and_package
run: pnpm run release ${{ github.event.inputs.release_type }} --ci $SKIP_RELEASE_ARG
run: pnpm run release ${{ github.event.inputs.release_type }} --ci $SKIP_RELEASE_ARGS
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SKIP_RELEASE_ARG: ${{ github.event.inputs.skip_release == 'true' && '--no-npm' || '' }}
SKIP_RELEASE_ARGS: ${{ github.event.inputs.skip_release == 'true' && '--no-git --no-github --no-npm' || '' }}
- name: Upload to Chrome Web Store
if: ${{ steps.build_and_package.outcome == 'success' && github.event.inputs.upload_to_chrome_web_store == 'true' }}
run: |
Expand Down

0 comments on commit a1b720f

Please sign in to comment.