Browse Source

fix "ensure commands are up to date" job (#864)

remotes/origin/clean-multishell-on-shell-exit
Gal Schlezinger 2 years ago committed by GitHub
parent
commit
4b12d5bf87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 38
      .github/workflows/rust.yml

38
.github/workflows/rust.yml

@ -326,20 +326,38 @@ jobs:
name: Ensure command docs are up-to-date name: Ensure command docs are up-to-date
needs: [build_static_linux_binary] needs: [build_static_linux_binary]
steps: steps:
- name: install necessary shells
run: sudo apt-get update && sudo apt-get install -y fish zsh bash
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Download a single artifact - uses: actions/download-artifact@v3
uses: actions/download-artifact@v3
with: with:
name: fnm-linux name: fnm-linux
- name: Make the binary runnable path: target/release
- name: mark binary as executable
run: chmod +x target/release/fnm
- name: install fnm as binary
run: | run: |
sudo install fnm /bin sudo install target/release/fnm /bin
fnm --version fnm --version
- name: Print fnm version - uses: pnpm/action-setup@v2.2.4
run: fnm --version with:
- run: fnm install run_install: false
- name: Install Node deps - uses: actions/setup-node@v3
run: fnm exec -- yarn with:
node-version: 16.x
cache: 'pnpm'
- name: Get pnpm store directory
id: pnpm-cache
run: |
echo "::set-output name=pnpm_cache_dir::$(pnpm store path)"
- uses: actions/cache@v3
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- run: pnpm install
- name: Generate command markdown - name: Generate command markdown
run: | run: |
fnm exec -- yarn generate-command-docs --check --binary-path=$(which fnm) pnpm run generate-command-docs --check --binary-path=$(which fnm)

Loading…
Cancel
Save