-
Notifications
You must be signed in to change notification settings - Fork 13
40 lines (40 loc) · 1.3 KB
/
main.yml
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
38
39
40
name: workflow
on: [push, pull_request]
jobs:
job:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Setup (Module)
run: npm ci
- name: Setup (Lambda Package)
working-directory: lambda-packages/dns-validated-domain-identity-handler
run: npm ci
- name: Lint (Module)
run: npm run lint
- name: Lint (Lambda Package)
working-directory: lambda-packages/dns-validated-domain-identity-handler
run: npm run lint
- name: Build (Module)
run: npm run build
- name: Build (Lambda Package)
working-directory: lambda-packages/dns-validated-domain-identity-handler
run: npm run build
- name: Test (Module)
run: npm test
- name: Test (Lambda Package)
working-directory: lambda-packages/dns-validated-domain-identity-handler
run: npm test
- name: Publish
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
run: npx semantic-release
env:
HUSKY: 0 # disable commitlint checks
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}