Add .nvmrc file for node version management. #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @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 |