To use github actions I do the following:
- Create an folder
.github
then create another folder inside itworkflows
and create a yaml file inside it likebuild.yml
. - Then I write this yaml code inside build.yml file:
name: Build
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '17'
- run: node index.js