Push images to AWS ECR #8
Workflow file for this run
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: Run npm lint on PR's | |
on: | |
pull_request: | |
types: [opened, synchronize] # Trigger on PR opened and when changes are pushed to the PR | |
jobs: | |
npm-audit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' # Specify the Node.js version | |
- name: Install dependencies | |
run: npm install | |
working-directory: src | |
- name: Run npm lint | |
env: | |
TERM: xterm | |
run: npm run lint | |
working-directory: src |