fix: ci lint fixes #74
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run on PR Merge | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, closed] | |
env: | |
NODE_VERSION: 22 | |
jobs: | |
deploy-on-pr-changes: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
# Set up Node.js | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
# Install dependencies | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 10.6.3 | |
run_install: false | |
- name: Install dependencies | |
run: pnpm i | |
# Run the CI build script to ensure search works | |
- name: Run CI build | |
id: build | |
env: | |
ZE_SECRET_TOKEN: ${{ secrets.ZEPHYR_AUTH_TOKEN }} | |
run: pnpm run build:ci | |
- name: Zephyr deploy summary | |
uses: ZephyrCloudIO/[email protected] | |
id: zephyr-summary | |
with: | |
application_uid: zephyr-cloud-docs.zephyr-documentation.zephyrcloudio # Required | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
github_environment: zephyr-docs (Preview) | |
- name: Zephyr deploy summary | |
run: echo "Deployed to ${{ steps.zephyr.outputs.version_url }}" |