Skip to content

Commit

Permalink
build: update build scripts
Browse files Browse the repository at this point in the history
See discussion: https://github.com/orgs/AlaskaAirlines/discussions/523

This code diff shows changes made to a YAML file named `testPublish.yml`
and a JSON file named `package.json`. The changes include adding a new
step `npm run build:test` in the `jobs` section of the YAML file and
modifying the `build` script in the JSON file to include new scripts
`build:test` and `build:release`.

Changes to be committed:
modified:   .github/workflows/testPublish.yml
modified:   package.json
  • Loading branch information
blackfalcon committed Jun 19, 2024
1 parent 51ab82d commit 2bccd76
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.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 }}
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,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 types",
"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-skeleton.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",
Expand Down

0 comments on commit 2bccd76

Please sign in to comment.