Skip to content

Add .nvmrc file for node version management. #10

Add .nvmrc file for node version management.

Add .nvmrc file for node version management. #10

# @see https://github.com/contentful/actions-app-deploy
on:
push:
branches:
- main
pull_request:
- main
jobs:
deploy_job:
runs-on: ubuntu-latest
name: Deploy app to Contentful
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- run: npm ci
- run: npm run build
- uses: contentful/actions-app-deploy@v1
with:
organization-id: ${{ secrets.ORGANIZATION_ID }}
app-definition-id: ${{ secrets.APP_DEFINITION_ID }}
access-token: ${{ secrets.ACCESS_TOKEN }}
folder: build