Merge pull request #2936 from contentful/dependabot/npm_and_yarn/main… #21
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
name: Deploy CDN to Fastly Compute | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: npm ci --workspace=@contentful/f36-cdn | |
- name: Deploy to Compute | |
uses: fastly/compute-actions@v8 | |
with: | |
project_directory: packages/cdn | |
service_id: ${{ secrets.CDN_FASTLY_SERVICE_ID }} | |
env: | |
FASTLY_API_TOKEN: ${{ secrets.CDN_FASTLY_TOKEN }} |