Change branch name in workflow #3
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: Install Node and Run Code | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: [self-hosted, testing-self-hosted] | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Install Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
- name: Run Code | |
run: | | |
npm install | |
npm run start | |
echo "Code has been run" |