diff --git a/.github/workflows/actions/setup-node/action.yml b/.github/workflows/actions/setup-node/action.yml index 51fbe1aed8..cc5ac5a92b 100644 --- a/.github/workflows/actions/setup-node/action.yml +++ b/.github/workflows/actions/setup-node/action.yml @@ -11,10 +11,9 @@ runs: steps: - name: Setup Node.js - uses: actions/setup-node@v4.0.0 + uses: actions/setup-node@v3.8.2 id: setup-node with: cache: ${{ inputs.use-cache == 'true' && 'npm' || '' }} - check-latest: true node-version-file: .nvmrc diff --git a/.github/workflows/sass.yaml b/.github/workflows/sass.yaml index 35a6399da9..4e5fcd4220 100644 --- a/.github/workflows/sass.yaml +++ b/.github/workflows/sass.yaml @@ -25,7 +25,7 @@ jobs: uses: actions/checkout@v4.1.1 - name: Setup Node.js - uses: actions/setup-node@v4.0.0 + uses: actions/setup-node@v3.8.2 with: cache: npm node-version: 8 # Node.js 8 supported by Dart Sass v1.0.0 @@ -47,10 +47,9 @@ jobs: uses: actions/checkout@v4.1.1 - name: Setup Node.js - uses: actions/setup-node@v4.0.0 + uses: actions/setup-node@v3.8.2 with: cache: npm - check-latest: true node-version-file: .nvmrc # Node.js project version must support Dart Sass v1 - name: Install package @@ -77,7 +76,7 @@ jobs: uses: actions/checkout@v4.1.1 - name: Setup Node.js - uses: actions/setup-node@v4.0.0 + uses: actions/setup-node@v3.8.2 with: cache: npm node-version: 4 # Node.js 4 supported by Node Sass v3.4.0 @@ -100,10 +99,9 @@ jobs: uses: actions/checkout@v4.1.1 - name: Setup Node.js - uses: actions/setup-node@v4.0.0 + uses: actions/setup-node@v3.8.2 with: cache: npm - check-latest: true node-version-file: .nvmrc # Node.js project version must support Node Sass v8.x - name: Install package diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 65ddccf9a0..e30e200bb3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -275,7 +275,7 @@ jobs: uses: ./.github/workflows/actions/build - name: Change Node.js version - uses: actions/setup-node@v4.0.0 + uses: actions/setup-node@v3.8.2 with: node-version: ${{ matrix.node-version }} diff --git a/packages/govuk-frontend/package.json b/packages/govuk-frontend/package.json index b7f2269ee5..c217cf3cad 100644 --- a/packages/govuk-frontend/package.json +++ b/packages/govuk-frontend/package.json @@ -61,12 +61,12 @@ "version": "echo $npm_package_version" }, "devDependencies": { + "@babel/core": "^7.23.6", + "@babel/preset-env": "^7.23.6", "@govuk-frontend/config": "*", "@govuk-frontend/helpers": "*", "@govuk-frontend/lib": "*", "@govuk-frontend/tasks": "*", - "@babel/core": "^7.23.6", - "@babel/preset-env": "^7.23.6", "@rollup/plugin-babel": "^6.0.4", "@rollup/plugin-replace": "^5.0.5", "@rollup/plugin-terser": "^0.4.4",