diff --git a/.github/workflows/testPublish.yml b/.github/workflows/testPublish.yml index 93fd095..7d3c75f 100644 --- a/.github/workflows/testPublish.yml +++ b/.github/workflows/testPublish.yml @@ -25,6 +25,7 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm ci - run: npm run build + - run: npm run build:test release: # Only release on push to main @@ -39,7 +40,7 @@ jobs: with: node-version: 20.x - run: npm ci - - run: npm run build + - run: npm run build:release - uses: cycjimmy/semantic-release-action@v4 env: GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} diff --git a/package.json b/package.json index 252ccaf..6fc504c 100644 --- a/package.json +++ b/package.json @@ -133,8 +133,10 @@ "web components" ], "scripts": { - "build": "npm-run-all build:sass sass:render scssLint dist:js bundler build:api build:docs postinstall types", - "build:ci": "npm-run-all sweep build", + "build": "npm-run-all build:sass sass:render types", + "build:test": "npm-run-all test linters", + "build:release": "npm-run-all build build:test build:api build:docs build:demoScripts bundler types postinstall", + "build:ci": "npm-run-all sweep build:release", "build:api": "wca analyze 'src/auro-select.js' --outFiles docs/api.md", "build:dev:assets": "npm-run-all build:sass:component postCss:component sass:render build:docs", "build:docs": "node scripts/generateDocs.mjs",