Skip to content

Commit

Permalink
build: update build scripts
Browse files Browse the repository at this point in the history
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
  • Loading branch information
blackfalcon committed May 15, 2024
1 parent 3e1fcfa commit a19b960
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/testPublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@
]
},
"scripts": {
"build": "npm-run-all build:sass sass:render cssLint dist:js bundler postinstall build:api types",
"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:dev:assets": "npm-run-all build:sass:component postCss:component sass:render",
"build:docs": "node scripts/generateDocs.mjs",
"build:api": "wca analyze 'src/auro-badge.js' --outFiles docs/api.md",
Expand Down

0 comments on commit a19b960

Please sign in to comment.