Install updates #4
Workflow file for this run
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 | ||
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 GitHub Actions / DeployInvalid workflow file
|
||
- 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 |