Skip to content

Commit

Permalink
Create node js deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
gjonhajdari authored Oct 18, 2024
1 parent c9c6ddb commit a329afe
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Node.js CI

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:

runs-on: self-hosted

steps:
- uses: actions/checkout@v2
- name: Use Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: 18.x
- run: npm install
- run: npm test
- run: pm2 restart app-name

0 comments on commit a329afe

Please sign in to comment.