Skip to content

Bump nanoid from 3.3.7 to 3.3.8 in /frontend (#13) #32

Bump nanoid from 3.3.7 to 3.3.8 in /frontend (#13)

Bump nanoid from 3.3.7 to 3.3.8 in /frontend (#13) #32

Workflow file for this run

name: build
on:
push:
branches: ["main"]
paths-ignore: ["**/*.md", "**/*.yml"] # Ignore changes to markdown and workflow files
workflow_dispatch:
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- name: Cache dependencies
id: cache-nodemodules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: frontend/node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('frontend/yarn.lock') }}
restore-keys: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('frontend/yarn.lock') }}
- name: Install dependencies
if: steps.cache-nodemodules.outputs.cache-hit != 'true'
working-directory: frontend/
run: yarn install --frozen-lockfile
- name: Build
working-directory: frontend/
run: yarn build
- name: Package
working-directory: frontend/
shell: bash
run: |
tar \
--dereference --hard-dereference \
--directory build/ \
-cvf "$RUNNER_TEMP/artifact.tar" \
--exclude=.git \
--exclude=.github \
.
- name: Upload artifact
uses: actions/upload-artifact@main
with:
name: github-pages
path: ${{ runner.temp }}/artifact.tar
retention-days: ${{ inputs.retention-days }}
# Deploy job
deploy:
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@main