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. 52
      .github/workflows/rust.yml

52
.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:
- uses: actions/checkout@v3 - name: install necessary shells
- name: Download a single artifact run: sudo apt-get update && sudo apt-get install -y fish zsh bash
uses: actions/download-artifact@v3 - uses: actions/checkout@v3
with: - uses: actions/download-artifact@v3
name: fnm-linux with:
- name: Make the binary runnable name: fnm-linux
run: | path: target/release
sudo install fnm /bin - name: mark binary as executable
fnm --version run: chmod +x target/release/fnm
- name: Print fnm version - name: install fnm as binary
run: fnm --version run: |
- run: fnm install sudo install target/release/fnm /bin
- name: Install Node deps fnm --version
run: fnm exec -- yarn - uses: pnpm/action-setup@v2.2.4
- name: Generate command markdown with:
run: | run_install: false
fnm exec -- yarn generate-command-docs --check --binary-path=$(which fnm) - uses: actions/setup-node@v3
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
run: |
pnpm run generate-command-docs --check --binary-path=$(which fnm)

Loading…
Cancel
Save