diff --git a/.github/workflows/npm-bundle.yml b/.github/workflows/npm-bundle.yml index 6482768624..a70a3b3448 100644 --- a/.github/workflows/npm-bundle.yml +++ b/.github/workflows/npm-bundle.yml @@ -26,4 +26,4 @@ jobs: - run: yarn npm-bundle - run: npm publish --access public env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/README.md b/README.md index acdf2ac56d..32adbb73f2 100644 --- a/README.md +++ b/README.md @@ -144,6 +144,42 @@ Generate a build into `./build`. yarn build ``` +## Manually publish to NPM + +Make sure you are logged into the CLI with the DS shared npm account + +Make sure dependencies are installed: + +```bash +yarn install +``` + +Set the version (replacing "" with actual release version e.g. 70.0.0): + +```bash +npm version +``` + +Create an NPM package by running: + +```bash +yarn npm-bundle +``` + +**_Once you have published to npm, the version you have published can never be used again so you want to make sure you have the right files included to do this run:_** + +```bash +npm pack +``` + +Then compare this list with the list of the current version here (https://www.npmjs.com/package/@ons/design-system?activeTab=code) + +If these match or have some expected changes then run this to publish: + +```bash +npm publish --access public +``` + ## Recommended Visual Studio Code Extensions for this project - [axe Accessibility Linter](https://marketplace.visualstudio.com/items?itemName=deque-systems.vscode-axe-linter) diff --git a/__snapshots__/layout/_template.spec.js.snap b/__snapshots__/layout/_template.spec.js.snap index ba70038df6..3fa2ab0f53 100644 --- a/__snapshots__/layout/_template.spec.js.snap +++ b/__snapshots__/layout/_template.spec.js.snap @@ -1395,7 +1395,6 @@ exports[`base page template matches the full configuration snapshot 1`] = ` -