Skip to content

Commit

Permalink
perf(node18): Update to support node 18++ #64
Browse files Browse the repository at this point in the history
Changes to be committed:
	modified:   .github/settings.yml
	modified:   .github/workflows/testPublish.yml
	modified:   .husky/pre-commit
	modified:   package.json
  • Loading branch information
fajar-apri-alaska authored and blackfalcon committed Apr 19, 2023
1 parent 42f96d2 commit 9419a4d
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 22 deletions.
4 changes: 4 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ branches:

# Labels: define labels for Issues and Pull Requests
labels:
- name: auro-badge
color: `fa23e4`
description:
process: Key filter for this repo
- name: duplicate
color: cde6ff
description: This Issue or Pull Request already exists
Expand Down
17 changes: 4 additions & 13 deletions .github/workflows/testPublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

strategy:
matrix:
node-version: [14.x]
node-version: [18.x]

steps:
- uses: actions/checkout@v3
Expand All @@ -24,12 +24,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build:sass:component
- run: npm run postCss:component
- run: npm run sass:render
- run: npm run distJS
- run: npm run bundler
- run: npm test
- run: npm run build

release:
# Only release on push to master
Expand All @@ -42,13 +37,9 @@ jobs:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version: 14
node-version: 18
- run: npm ci
- run: npm run build:sass:component
- run: npm run postCss:component
- run: npm run sass:render
- run: npm run distJS
- run: npm run bundler
- run: npm run build
- uses: cycjimmy/semantic-release-action@v3
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm test
./node_modules/.bin/npm-run-all linters test
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
"version": "1.5.5",
"description": "Auro custom auro-header element",
"author": "Product design and research",
"engines": {
"node": ">=18.15.0"
},
"repository": {
"type": "git",
"url": "https://github.com/AlaskaAirlines/auro-header"
Expand Down Expand Up @@ -79,35 +82,33 @@
"browserslist": [
"last 2 Chrome versions",
"last 2 iOS major versions",
"ie 11",
"last 2 Firefox versions",
"last 2 Edge versions",
"last 2 Safari major versions"
],
"scripts": {
"build": "npm run ciBuild",
"apiBuild": "wca analyze 'src/auro-header.js' --outFiles docs/api.md",
"build": "npm-run-all build:sass sass:render cssLint dist:js bundler postinstall build:api",
"build:dev:assets": "npm-run-all build:sass:component postCss:component sass:render",
"build:api": "wca analyze 'src/auro-badge.js' --outFiles docs/api.md",
"build:watch": "nodemon -e scss,js --watch src --exec npm run build:dev:assets",
"bundler": "rollup -c",
"bundle:test": "rollup -c -w",
"serve": "web-dev-server --open demo/ --node-resolve --watch",
"postinstall": "node packageScripts/postinstall.js",
"postinstall:lit": "node scripts/postinstall.js",
"cssLint": "stylelint './src/*.css'",
"dev": "npm run build:sass:watch",
"distJS": "copyfiles -u 1 -V './src/**/*.js' ./dist",
"dist:js": "copyfiles -u 1 -V './src/**/*.js' ./dist",
"sass:render": "sass-render src/*.css -t ./scripts/staticStyles-template.js",
"sweep": "rm -rf ./temp ./demo/css ./demo/fonts ./dist ./src/tokens | rm ./src/*.css ./src/*-css.js",
"esLint": "./node_modules/.bin/eslint src/auro-*.js",
"lint": "npm-run-all cssLint esLint",
"linters": "npm-run-all cssLint esLint",
"test": "wtr --coverage",
"test:watch": "wtr --watch",
"test:ci": "npm-run-all test lint",
"ciBuild": "npm-run-all build:sass sass:render cssLint distJS bundler postinstall apiBuild",
"build:sass": "npm-run-all build:sass:component postCss:component sass:render",
"build:sass:dev": "npm-run-all build:sass:component postCss:component sass:render",
"build:sass:demo": "sass ./demo/sass/ --output ./demo/css/",
"build:sass:component": "sass --no-source-map src:src",
"build:sass:watch": "nodemon -e scss --watch src --exec npm run build:sass:dev",
"postCss:component": "node ./scripts/postCss.js",
"prepare": "husky install"
},
Expand Down

0 comments on commit 9419a4d

Please sign in to comment.