Skip to content

Add write permissions #3

Add write permissions

Add write permissions #3

Workflow file for this run

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

Check failure on line 23 in .github/workflows/npm.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/npm.yml

Invalid workflow file

You have an error in your yaml syntax on line 23
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]