-
Notifications
You must be signed in to change notification settings - Fork 5
37 lines (33 loc) · 1.21 KB
/
build-new.yml
File metadata and controls
37 lines (33 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Deploy Lambda Layers For New Node.js Releases
on:
workflow_dispatch:
schedule:
- cron: "0 */6 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Upgrade aws-cli
run: |
curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip >/dev/null
sudo ./aws/install --update
/usr/local/bin/aws --version
aws --version
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: "16.x"
- name: Check for new Node.js releases and build new layers
env:
SLACK_URL: ${{ secrets.SLACK_URL }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_072 }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_072 }}
run: |
npm i -g zx
npm ci
npm test
npm run build:new