Skip to content

Commit

Permalink
[Bugfix] Try out github example of defining GITHUB_ENV variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lnfel committed Sep 8, 2023
1 parent 7ae3669 commit 8389261
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,18 @@ jobs:
# Unable to process file command 'env' successfully.
# https://github.com/pnpm/action-setup/pull/75
# https://medium.com/@ibraheemabukaff/github-actions-exporting-multi-line-one-line-value-environment-variable-5bb86d01e866
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#example-of-a-multiline-string
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
# old command errors with "Unable to process file command 'env' successfully."
# echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
{
echo "STORE_PATH<<EOF"
pnpm store path --silent
echo EOF
} >> $GITHUB_ENV
- name: Setup pnpm cache
uses: actions/cache@v3
Expand Down

0 comments on commit 8389261

Please sign in to comment.