Skip to content

Commit

Permalink
✏️ progress: WIP.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Mar 25, 2024
1 parent d2115ee commit d9e53db
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci:build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,29 @@ jobs:
path: dist

- uses: actions/setup-node@v4
if: ${{ !contains(fromJSON('["14.21.4"]'), needs.build.outputs.node-version) }}
with:
node-version: ${{ needs.build.outputs.node-version }}

- name: Install Meteor-specific Node version via nvm
if: ${{ contains(fromJSON('["14.21.4"]'), needs.build.outputs.node-version) }}
env:
NODE_VERSION: ${{ needs.build.outputs.node-version }}
run: |
export NODE_INSTALL_PATH="${HOME}/.nvm/versions/node/v${{ needs.build.outputs.node-version }}"
curl "https://static.meteor.com/dev-bundle-node-os/v${NODE_VERSION}/node-v$NODE_VERSION-linux-x64.tar.gz" | tar xzf - -C /tmp/
mkdir -p "${NODE_INSTALL_PATH}"
rm -r "${NODE_INSTALL_PATH}"
mv "/tmp/node-v${NODE_VERSION}-linux-x64" "${NODE_INSTALL_PATH}"
nvm use "${NODE_VERSION}"
nvm alias default "${NODE_VERSION}"
echo \
"NODE_PATH=$(dirname $(nvm which $(node --version)))" \
>> "$GITHUB_ENV"
- name: Node WIP
env:
NODE_PATH: ${{ env.NODE_PATH }}
run: node --version

- name: Dist WIP
Expand Down

0 comments on commit d9e53db

Please sign in to comment.