From 1f4d9dc5cc378186aadda03f2c39b135cbd2556a Mon Sep 17 00:00:00 2001 From: Dale Sande Date: Wed, 15 May 2024 14:34:42 -0700 Subject: [PATCH] build: update build scripts This commit updates the pakcage.json build scripts to be compliant with the decisions made in this discussion: https://github.com/orgs/AlaskaAirlines/discussions/523 Changes to be committed: modified: .github/workflows/testPublish.yml modified: package.json --- .github/workflows/testPublish.yml | 3 ++- package.json | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) 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 1e9d399..b339982 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 postinstall build:api types build:docs", - "build:ci": "npm-run-all sweep build", + "build": "npm-run-all build:sass sass:render", + "build:test": "npm-run-all test linters", + "build:release": "npm-run-all build build:test build:api build:docs bundler types postinstall", + "build:ci": "npm-run-all sweep build:release", "build:api": "wca analyze 'src/auro-carousel.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",