diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 8ff7db7f8..9c91c5bc5 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,23 +14,23 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 - cache: 'yarn' + cache: npm - - name: Install all yarn packages - run: yarn --frozen-lockfile + - name: Install all npm packages + run: npm ci - name: Lint JS code - run: yarn lint:js + run: npm run lint:js - name: Lint CSS code - run: yarn lint:css + run: npm run lint:css - name: Build all - run: yarn build + run: npm run build - name: Start server run: | - yarn start-server > /tmp/stdout.log 2> /tmp/stderr.log & + npm run start-server > /tmp/stdout.log 2> /tmp/stderr.log & sleep 3 curl --retry-connrefused --retry 5 http://localhost:9090 > /dev/null diff --git a/.github/workflows/prod-deploy.yml b/.github/workflows/prod-deploy.yml index c98d2fa1a..1bb9e6a85 100644 --- a/.github/workflows/prod-deploy.yml +++ b/.github/workflows/prod-deploy.yml @@ -23,13 +23,13 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 - cache: 'yarn' + cache: npm - - name: Install all yarn packages - run: yarn --frozen-lockfile + - name: Install all npm packages + run: npm ci - name: Build all - run: yarn build + run: npm run build - name: Deploy pages run: | diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index b4cac7c67..c4f3e8551 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -27,15 +27,15 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 - cache: 'yarn' + cache: npm - - name: Install all yarn packages + - name: Install all npm packages if: needs.publish-release.outputs.release_created - run: yarn --frozen-lockfile + run: npm ci - name: Build all if: needs.publish-release.outputs.release_created - run: yarn build + run: npm run build - name: Deploy pages if: needs.publish-release.outputs.release_created diff --git a/.github/workflows/stage-deploy.yml b/.github/workflows/stage-deploy.yml index 533a1ed9b..5c029d320 100644 --- a/.github/workflows/stage-deploy.yml +++ b/.github/workflows/stage-deploy.yml @@ -23,13 +23,13 @@ jobs: uses: actions/setup-node@v3 with: node-version: 18 - cache: yarn + cache: npm - - name: Install all yarn packages - run: yarn --frozen-lockfile + - name: Install all npm packages + run: npm ci - name: Build all - run: yarn build + run: npm run build - name: Configure AWS credentials for stage uses: aws-actions/configure-aws-credentials@v1 diff --git a/CONTRIBUTING-HTML.md b/CONTRIBUTING-HTML.md index 7dccaec55..c3fc4e5d6 100644 --- a/CONTRIBUTING-HTML.md +++ b/CONTRIBUTING-HTML.md @@ -154,7 +154,7 @@ Sometimes formal and content guidelines are at odds. For example, sometimes writ ### Formal guidelines -In general: try out your example using `yarn start` and see what it looks like with a browser window width of 1000px. +In general: try out your example using `npm start` and see what it looks like with a browser window width of 1000px. - Can the user see the whole example source without having to scroll? @@ -238,7 +238,7 @@ For example, here's an example for the `