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 26, 2024
1 parent d2115ee commit 05fbafa
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci:build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,47 @@ 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 nvm
if: ${{ contains(fromJSON('["14.21.4"]'), needs.build.outputs.node-version) }}
run: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
echo \
"NVM_DIR=$NVM_DIR" \
>> "$GITHUB_ENV"
- name: Install Meteor-specific Node version to nvm
if: ${{ contains(fromJSON('["14.21.4"]'), needs.build.outputs.node-version) }}
env:
NODE_VERSION: ${{ needs.build.outputs.node-version }}
NVM_DIR: ${{ env.NVM_DIR }}
run: |
export NODE_INSTALL_PATH="${NVM_DIR}/versions/node/v${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}"
- name: Use 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 }}
NVM_DIR: ${{ env.NVM_DIR }}
run: |
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 05fbafa

Please sign in to comment.