diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index baeaa39fda..3cc2515ba4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,9 +10,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - name: Setup NODE + uses: actions/setup-node@v2 with: - node-version: '16' + node-version: '18' + - if: matrix.node-version >= '17' + run: echo "NODE_OPTIONS=--openssl-legacy-provider" >> $GITHUB_ENV - uses: actions/cache@v2 with: path: | @@ -26,9 +29,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - name: Setup NODE + uses: actions/setup-node@v2 with: - node-version: '16' + node-version: '18' + - if: matrix.node-version >= '17' + run: echo "NODE_OPTIONS=--openssl-legacy-provider" >> $GITHUB_ENV - uses: actions/cache@v2 with: path: | @@ -46,9 +52,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - name: Setup NODE + uses: actions/setup-node@v2 with: - node-version: '16' + node-version: '18' + - if: matrix.node-version >= '17' + run: echo "NODE_OPTIONS=--openssl-legacy-provider" >> $GITHUB_ENV - uses: actions/cache@v2 with: path: | @@ -62,9 +71,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - name: Setup NODE + uses: actions/setup-node@v2 with: - node-version: '16' + node-version: '18' + - if: matrix.node-version >= '17' + run: echo "NODE_OPTIONS=--openssl-legacy-provider" >> $GITHUB_ENV - uses: actions/cache@v2 with: path: | @@ -78,9 +90,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - name: Setup NODE + uses: actions/setup-node@v2 with: - node-version: '16' + node-version: '18' + - if: matrix.node-version >= '17' + run: echo "NODE_OPTIONS=--openssl-legacy-provider" >> $GITHUB_ENV - uses: actions/cache@v2 with: path: | diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 66898d40fe..5ea04aae48 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -8,9 +8,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - name: Setup NODE + uses: actions/setup-node@v2 with: - node-version: '16' + node-version: '18' + - if: matrix.node-version >= '17' + run: echo "NODE_OPTIONS=--openssl-legacy-provider" >> $GITHUB_ENV - uses: actions/cache@v2 with: path: | diff --git a/README.md b/README.md index 5ae3d5c9f6..0e6d451a92 100644 --- a/README.md +++ b/README.md @@ -153,6 +153,16 @@ yarn run check:stylelint yarn run test ``` +### Documentation Deployment & CI + +CI jobs config scripts can be found under .github/workflows + +Every PR is hosted on [Render](https://render.com) with a link on the pull request conversation. Docs from `master` are additionally hosted on [GitHub Pages](https://pages.github.com/). + +node-version: Currently we specifically target LTS v18 as the used node-version + +> `.nvmrc` is essential to override the node-version used by Render + ### Publishing #### Kotti diff --git a/package.json b/package.json index 68db3f180b..e8b3719108 100644 --- a/package.json +++ b/package.json @@ -127,7 +127,7 @@ "private": true, "repository": "git@github.com:3YOURMIND/kotti", "scripts": { - "build:render.com": "yarn run watch:build-kotti-dependencies && yarn workspace @3yourmind/kotti-ui run build && yarn workspace @3yourmind/documentation run nuxt generate", + "build:render.com": "export NODE_OPTIONS=--openssl-legacy-provider; yarn run watch:build-kotti-dependencies && yarn workspace @3yourmind/kotti-ui run build && yarn workspace @3yourmind/documentation run nuxt generate", "check": "yarn run check:stylelint && yarn run check:eslint && yarn run check:prettier", "check:eslint": "eslint --max-warnings=0 --ignore-path .gitignore '**/*.{js,jsx,json,ts,tsx,vue}'", "check:prettier": "prettier --check --ignore-path .gitignore .", diff --git a/packages/documentation/nuxt.config.js b/packages/documentation/nuxt.config.js index 15c668d13c..e0cdfccb25 100644 --- a/packages/documentation/nuxt.config.js +++ b/packages/documentation/nuxt.config.js @@ -48,6 +48,7 @@ const config = { }, }, extend(config) { + config.output.hashFunction = 'sha256' config.plugins.push(new CaseSensitivePathsPlugin()) }, },