From f15200ecb7b75f2b37c2e66f902d7152f2a61300 Mon Sep 17 00:00:00 2001 From: Dale Sande Date: Fri, 3 May 2024 11:18:59 -0700 Subject: [PATCH] build: update package build pipeline This commit updates the repo package build scripts per 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 | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/testPublish.yml b/.github/workflows/testPublish.yml index e8bd23ed..db60fce7 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 - 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 fc07fca6..a221260e 100644 --- a/package.json +++ b/package.json @@ -140,7 +140,10 @@ "web components" ], "scripts": { - "build": "npm-run-all build:sass sass:render dist:js build:api test build:docs bundler postinstall types", + "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-input.js' --outFiles docs/api.md", "build:demo": "npm-run-all build demo:rm:build demo:new:build demo:copy:index demo:copy:demo demo:update:index", "build:dev:assets": "npm-run-all build:sass:component postCss:component sass:render",