Skip to content

Commit

Permalink
workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
alshdavid committed Apr 6, 2024
1 parent cacee4b commit c53f2df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/setup-node/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ runs:
export SELECTED_NODE_VERSION=$(curl -sSL https://nodejs.org/download/release/ | sed -E 's/<a.*>(v.*\..*\.[0-9]+\/)<\/a>.*/\1/g' | grep "^v" | sed -E "s/v(.*)\//\1/g" | sort -u -k 1,1n -k 2,2n -k 3,3n -t . | grep "^${NODE_VERSION}" | tail -n1)
echo "SELECTED_NODE_VERSION=$SELECTED_NODE_VERSION" >> $GITHUB_ENV
- name: "🐥 Install Node.js"
- name: "🐥 Linux AMD64"
shell: bash
if: ${{ (runner.os == 'Linux') && (runner.arch == 'X64') }}
run: |
mkdir -p $HOME/.local/nodejs
curl -L --url https://nodejs.org/download/release/v${SELECTED_NODE_VERSION}/node-v${SELECTED_NODE_VERSION}-linux-x64.tar.gz | tar -xvzf - -C $HOME/.local/nodejs --strip-components=1
echo "export PATH=\"\$HOME/.local/nodejs\$PATH\"" >> $GITHUB_ENV
echo "export PATH=\"\$HOME/.local/nodejs:\$PATH\"" >> $GITHUB_ENV
# - name: "🐥Install Node.js"
# if: ${{ (runner.os != 'Linux') && (runner.arch != 'ARM64' }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
ls -l $HOME
ls -l $HOME/.local
node -v
which node
macos:
runs-on: macos-14
Expand Down

0 comments on commit c53f2df

Please sign in to comment.