diff --git a/.github/workflows/release-on-master-pr.yml b/.github/workflows/release-on-master-pr.yml index 35d97c7..3c21bad 100644 --- a/.github/workflows/release-on-master-pr.yml +++ b/.github/workflows/release-on-master-pr.yml @@ -17,7 +17,7 @@ concurrency: jobs: # Single deploy job since we're just deploying deploy: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v3 diff --git a/CHANGELOG.md b/CHANGELOG.md index c004fbf..1cd1c42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,15 @@ # CHANGELOG +## v2.0.5 + +- Add `"puppeteerArgs": ["--no-sandbox", "--disable-setuid-sandbox"]` in `package.json` as recommended in [README](https://github.com/stereobooster/react-snap#containers-and-other-restricted-environments): + + > Puppeteer (Headless Chrome) may fail due to sandboxing issues. To get around this, you may use: + > `"puppeteerArgs": ["--no-sandbox", "--disable-setuid-sandbox"]` + > Read more about [puppeteer troubleshooting](https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md). + +- Set `ubuntu-latest` in Github Actions workflow. The proposed `puppeteer` fix should fix the issue: [There is a phenomenon in which the build does not end in the GitHub Actions (Linux Latest) environment.](https://github.com/stereobooster/react-snap/issues/571) + ## v2.0.4 - Fix #147 language switch button closes correctly when language is choose. diff --git a/package-lock.json b/package-lock.json index de9ee7c..6c09cb7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "modokemdev-website", - "version": "2.0.4", + "version": "2.0.5", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "modokemdev-website", - "version": "2.0.4", + "version": "2.0.5", "license": "MIT", "dependencies": { "@headlessui/react": "^0.2.0", diff --git a/package.json b/package.json index f21e160..f8cda56 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "modokemdev-website", - "version": "2.0.4", + "version": "2.0.5", "description": "Modokemdev website created using create-react-app", "main": "index.js", "private": true, @@ -59,6 +59,9 @@ "eslintConfig": { "extends": "react-app" }, + "reactSnap": { + "puppeteerArgs": ["--no-sandbox", "--disable-setuid-sandbox"] + }, "browserslist": [ ">0.2%", "not dead", diff --git a/src/server/defaultState.js b/src/server/defaultState.js index a9e162c..da83fb1 100644 --- a/src/server/defaultState.js +++ b/src/server/defaultState.js @@ -153,7 +153,7 @@ export const defaultState = { bio: [ { language: "en", - text: "Personal blog using minimal-mistakes theme for jekyll .", + text: "Personal blog using minimal-mistakes theme for jekyll.", }, { language: "fr",