Install Node 21 #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check for newer versions and publish | ||
on: | ||
schedule: | ||
- cron: "0 8 * * *" | ||
workflow_dispatch: | ||
jobs: | ||
update: | ||
name: Check for newer versions of Rust and update | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ubuntu:devel | ||
steps: | ||
-name: Install Nodejs 21 apt keyrings | ||
run: mkdir -p /etc/apt/keyrings && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_21.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list | ||
- name: Update system | ||
run: apt-get update && apt-get --yes upgrade | ||
- name: Install building tools | ||
run: apt-get install --yes git python3 python3-pip gcc g++ make ninja-build ca-certificates curl gnupg | ||
- name: Clone the repo | ||
run: git clone https://github.com/devraymondsh/libnode-distributable | ||
- name: Run the script | ||
run: cd libnode-distributable && node index.js |