Skip to content
This repository was archived by the owner on Sep 20, 2022. It is now read-only.

Commit f2f22ab

Browse files
authored
Merge pull request #3 from cabinetoffice/merge-upstream
Merge v12.1.1 of the Prototype Kit
2 parents 7d38d2b + ff3573a commit f2f22ab

18 files changed

Lines changed: 8345 additions & 18089 deletions

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,4 @@ create-release.sh export-ignore
1313
internal_docs export-ignore
1414
update.sh export-ignore
1515
/CODEOWNERS export-ignore
16+
/scripts export-ignore

.github/workflows/lint.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@ jobs:
1111
name: Lint
1212
runs-on: ubuntu-latest
1313

14-
env:
15-
npm_config_include: 'optional'
16-
1714
steps:
1815
- uses: actions/checkout@v2
1916

@@ -22,6 +19,6 @@ jobs:
2219
cache: 'npm'
2320
node-version-file: '.nvmrc'
2421

25-
- run: npm install --omit=production
22+
- run: npm install
2623

2724
- run: npm run lint

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
usage-data-config.json
33
# ignore extension SCSS because it's dynamically generated
44
lib/extensions/_extensions.scss
5+
# ignore any release archives
6+
/govuk-prototype-kit*.zip
57
.env
68
.sass-cache
79
.DS_Store

.npmrc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
audit=false
2-
omit=optional
3-
optional=false
42
script-shell=bash

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
## 12.1.1 (Fix release)
6+
57
### Fixes
68

79
- [#1333: Fix _unchecked falsey value on check your answers page](https://github.com/alphagov/govuk-prototype-kit/pull/1333)

VERSION.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12.1.0
1+
12.1.1

__tests__/spec/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function _mkReleaseArchiveSync ({ archive, prefix }) {
6767
const ref = child_process.execSync('git stash create', { cwd: repoDir, encoding: 'utf8' }) || 'HEAD'
6868

6969
child_process.execSync(
70-
`git archive --worktree-attributes --prefix=${prefix}/ --output=${archive} ${ref}`,
70+
`node scripts/create-release-archive --releaseName ${getReleaseVersion()} --destDir ${path.dirname(archive)} ${ref}`,
7171
{ cwd: repoDir }
7272
)
7373
}

docs/documentation_routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ router.get('/download', function (req, res) {
4444
const version = require('../package.json').version
4545

4646
res.redirect(
47-
`https://github.com/alphagov/govuk-prototype-kit/archive/v${version}.zip`
47+
`https://github.com/alphagov/govuk-prototype-kit/releases/v${version}/download/govuk-prototype-kit-${version}.zip`
4848
)
4949
} else {
5050
res.redirect(

internal_docs/releasing.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,15 @@ v8.0.0 // After implementing backwards incompatible changes
4848

4949
11. In the description, paste the relevant section from the release notes in the Google Doc.
5050

51-
12. Click 'Publish release'.
51+
12. Checkout the *main* branch and pull the latest changes.
5252

53-
13. Let the community know about the release
53+
13. Run `node scripts/create-release-archive`, which will generate a ZIP in the root of this project.
54+
55+
14. Attach the generated ZIP to the release.
56+
57+
15. Click 'Publish release'.
58+
59+
16. Let the community know about the release
5460

5561
Write a brief summary with highlights from the release then send it to the following slack channels:
5662

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env node
2+
13
const { devServer } = require('./tasks')
24

35
devServer()

0 commit comments

Comments
 (0)