Skip to content

fix(deps): update dependency preact to v10.19.6 #290

fix(deps): update dependency preact to v10.19.6

fix(deps): update dependency preact to v10.19.6 #290

Workflow file for this run

name: Deploy to Github pages
on:
push:
branches:
- main
# pull_request:
# branches:
# - main
repository_dispatch:
types:
- update_content
jobs:
build-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '16.x'
# Not working
# - uses: nrwl/nx-set-shas@v3
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: _cache_npm_node16
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Transpile
run: |
yarn
yarn nx run 2021-app:build
yarn nx run 2023-app:build
env:
CI: true
NEXT_PUBLIC_NEWT_SPACE_UID: ${{ secrets.NEXT_PUBLIC_NEWT_SPACE_UID }}
NEXT_PUBLIC_NEWT_API_TOKEN: ${{ secrets.NEXT_PUBLIC_NEWT_API_TOKEN }}
URL_PREFIX: conference
GITHUB_PAGES: true
# `_` から始まるディレクトリが見えず 404 となってしまう対策を追加
- name: Export
run: |
yarn nx run 2021-app:export
yarn nx run 2023-app:export
touch dist/apps/2021-app/exported/.nojekyll
touch dist/apps/2023-app/exported/.nojekyll
rm -rf docs/2021 docs/2022-2023
mv dist/apps/2021-app/exported docs/2021
mv dist/apps/2023-app/exported docs/2022-2023
env:
CI: true
NEXT_PUBLIC_NEWT_SPACE_UID: ${{ secrets.NEXT_PUBLIC_NEWT_SPACE_UID }}
NEXT_PUBLIC_NEWT_API_TOKEN: ${{ secrets.NEXT_PUBLIC_NEWT_API_TOKEN }}
URL_PREFIX: conference
GITHUB_PAGES: true
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs