diff --git a/.github/workflows/canary.yaml b/.github/workflows/canary.yaml index 4f8db97b..05814e78 100644 --- a/.github/workflows/canary.yaml +++ b/.github/workflows/canary.yaml @@ -32,7 +32,6 @@ jobs: with: node-version: 16 registry-url: https://registry.npmjs.org - scope: '@reuters-graphics' - id: cache name: Cache node modules @@ -43,6 +42,10 @@ jobs: restore-keys: | yarn-deps-${{ hashFiles('yarn.lock') }} + - id: build-package + name: Build package + run: npm run build:package + - id: release name: Create Release env: diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 77aa3270..92480385 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -45,6 +45,10 @@ jobs: name: Build docs run: npm run build:docs + - id: build-package + name: Build package + run: npm run build:package + - id: version name: Version run: npm version ${{ github.ref_name }} --no-git-tag-version diff --git a/package.json b/package.json index 344c5bfb..aa330bcd 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,6 @@ "build:chromatic": "storybook build -o docs", "build:docs": "storybook build -o docs && touch ./docs/.nojekyll", "build": "npm-run-all build:package build:docs", - "prepublishOnly": "npm run build:package", "postversion": "git push origin && git push origin --tags" }, "license": "MIT",