-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.12 KB
/
npm.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
on: [push, pull_request]
permissions:
id-token: write
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: NVM Install
run: |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
. $HOME/.nvm/nvm.sh
nvm install
- name: Full Build
run: |
npm ci
Deploy_via_GitHub_to_AWS_via_FederatedOIDC
npm run build
- name: Configure AWS Credentials
uses: aws-actions/[email protected]
if: github.ref == 'refs/heads/main'
with:
role-to-assume: arn:aws:iam::915290536872:role/liztoffstudios.com-deploy
role-session-name: Deploy_via_GitHub_to_AWS_via_FederatedOIDC
aws-region: us-east-1
- name: Deploy
if: github.ref == 'refs/heads/main'
run: npm run deploy
automerge:
needs: build
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- uses: fastify/[email protected]