Browse Source

Revert "run pnpm like other tasks"

This reverts commit f5f2ca29f1.
we can revert the yarn changes and do it in a different PR
remotes/origin/feat/support-install-latest
Gal Schlezinger 2 years ago
parent
commit
5906ee27a2
  1. 55
      .github/workflows/rust.yml

55
.github/workflows/rust.yml

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