Skip to content

Install updates

Install updates #4

Workflow file for this run

name: Deploy
on:
pull_request:
branches:
- main
jobs:
dependencies:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
with:
persist-credentials: false
- name: Install dependencies
run: |
yarn --version
yarn install --immutable --verbose
- name: Cache dependencies
id: cache-dependencies-save
uses: actions/cache/save@v4
with:
path: node_modules
key: ${{ runner.os }}-dependencies
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
with:
persist-credentials: false
- name: Restore cached dependencies
id: cache-dependencies-restore
uses: actions/cache/restore@v4
with:
path: node_modules
key: ${{ steps.cache-dependencies-save,outputs.cache-primary-key }}

Check failure on line 42 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / Deploy

Invalid workflow file

The workflow is not valid. .github/workflows/deploy.yml (Line: 42, Col: 16): Unexpected symbol: ','. Located at position 30 within expression: steps.cache-dependencies-save,outputs.cache-primary-key .github/workflows/deploy.yml (Line: 61, Col: 16): Unexpected symbol: ','. Located at position 30 within expression: steps.cache-dependencies-save,outputs.cache-primary-key
- name: Lint
run: yarn lint
build:
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout
uses: actions/checkout@master
with:
persist-credentials: false
- name: Restore cached dependencies
id: cache-dependencies-restore
uses: actions/cache/restore@v4
with:
path: node_modules
key: ${{ steps.cache-dependencies-save,outputs.cache-primary-key }}
- name: Build
run: yarn build
env:
NODE_ENV: production
- name: Upload artifact
id: upload-artifact
uses: actions/upload-artifact@v4
with:
name: localstack-ses-viewer
path: dist/
retention-days: 7
if-no-files-found: error
# Deploy job
deploy:
# Add a dependency to the build job
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4