specify release-branch #22
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: Build | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v3 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: npm | |
- name: Install dependencies | |
run: npm install | |
- name: Build ZIP archive | |
run: npm run build | |
- name: Check ZIP existence | |
uses: andstor/file-existence-action@v2 | |
with: | |
files: build/logtail-aws-lambda.zip | |
- name: Check for uncommitted changes after build (eg. package-lock.json) | |
run: '[[ -z "$(git status --porcelain)" ]] || (git status; exit 1)' |