diff --git a/.changeset/config.json b/.changeset/config.json
index 5c1b663d..1c879e2b 100644
--- a/.changeset/config.json
+++ b/.changeset/config.json
@@ -4,7 +4,7 @@
"commit": true,
"fixed": [],
"linked": [],
- "access": "restricted",
+ "access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
diff --git a/.github/workflows/chromatic.yaml b/.github/workflows/chromatic.yaml
deleted file mode 100644
index ac0ed605..00000000
--- a/.github/workflows/chromatic.yaml
+++ /dev/null
@@ -1,30 +0,0 @@
-name: Chromatic
-
-on:
- pull_request:
- branches:
- - main
-
-jobs:
- chromatic-deployment:
- runs-on: ubuntu-latest
- env:
- NODE_OPTIONS: '--max_old_space_size=4096'
- steps:
- - name: Checkout repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
- - name: Setup node
- uses: actions/setup-node@v4
- with:
- node-version: 20
- cache: npm
- - name: Install dependencies
- run: npm ci
- - name: Publish to Chromatic
- uses: chromaui/action@v1
- with:
- projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
- buildScriptName: build:chromatic
- exitOnceUploaded: true
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml
index 7061ce69..1f598335 100644
--- a/.github/workflows/lint.yaml
+++ b/.github/workflows/lint.yaml
@@ -5,42 +5,7 @@ on:
branches:
- main
-concurrency: ${{ github.workflow }}-${{ github.ref }}
-
-permissions:
- checks: write
- contents: write
-
jobs:
lint:
- name: Lint
- runs-on: ubuntu-latest
- steps:
- - id: checkout
- name: Checkout repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
-
- - id: setup-node
- name: Setup Node.JS
- uses: actions/setup-node@v4
- with:
- node-version: 20
- cache: npm
-
- - id: install-deps
- name: Install dependencies
- run: npm ci
-
- - id: lint
- name: Lint code
- run: npm run lint:check
-
- - id: format
- name: Format code
- run: npm run format:check
-
- - id: check-deps
- name: Check for unused scripts and dependencies
- run: npm run knip
+ uses: reuters-graphics/action-workflows/.github/workflows/lint.yaml@main
+ secrets: inherit
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index e51da2f6..538fd517 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -5,68 +5,10 @@ on:
branches:
- main
-concurrency: ${{ github.workflow }}-${{ github.ref }}
-
-permissions:
- contents: write
- pull-requests: write
-
jobs:
release:
- name: Release
- runs-on: ubuntu-latest
- env:
- NODE_OPTIONS: '--max_old_space_size=4096'
- if: github.repository == 'reuters-graphics/graphics-components'
- steps:
- - id: checkout
- name: Checkout repository
- uses: actions/checkout@v4
- with:
- fetch-depth: 0
-
- - id: setup-node
- name: Setup Node.JS
- uses: actions/setup-node@v4
- with:
- node-version: 20
- cache: npm
-
- - id: install-deps
- name: Install dependencies
- run: npm ci
-
- - id: lint
- name: Lint code
- run: npm run lint:check
-
- - id: build-package
- name: Build package
- run: npm run build:package
-
- - id: changesets
- name: Create Release Pull Request or Publish to npm
- uses: changesets/action@v1
- with:
- version: npm run changeset:version
- publish: npm run changeset:publish
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
-
- - id: build-docs
- name: Build docs
- if: steps.changesets.outputs.published == 'true'
- run: npm run build:docs
-
- - id: commit_and_push
- name: Commit and push docs
- if: steps.changesets.outputs.published == 'true'
- run: |
- git config --global user.name 'github-actions[bot]'
- git config --global user.email 'github-actions[bot]@users.noreply.github.com'
- git add .
- git commit -m "docs"
- git push
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ uses: reuters-graphics/action-workflows/.github/workflows/changesets-release.yaml@main
+ secrets: inherit
+ with:
+ node_version: '20'
+ publish_docs: true
diff --git a/docs/.nojekyll b/docs/.nojekyll
deleted file mode 100644
index e69de29b..00000000
diff --git a/docs/assets/Analytics.stories-DHqqGE0V.js b/docs/assets/Analytics.stories-DHqqGE0V.js
deleted file mode 100644
index e92ea73d..00000000
--- a/docs/assets/Analytics.stories-DHqqGE0V.js
+++ /dev/null
@@ -1,63 +0,0 @@
-import{S as I,i as B,s as F,p as Y,l as A,c as f,o as v,m as d,h as p,t as y,a as $,k as u,d as w,q as x,n as q}from"./index-C9aKRT5A.js";import{g as O,a as W}from"./spread-CgU5AtxT.js";import{p as K,w as V,M as z,T as H,S as C,a as G}from"./collect-stories-ceFdpR5E.js";const Q=`Add Google and Chartbeat analytics to your page.
-
-\`\`\`svelte
-
-
Sorry, but you either have no stories or none are selected somehow.
-- If the problem persists, check the browser console, or the terminal you've run Storybook from. -
-- The component failed to render properly, likely due to a configuration issue in Storybook. - Here are some common causes and how you can address them: -
-
-