Skip to content

Commit

Permalink
Add prepublishOnly hook (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
duranb authored Nov 15, 2023
1 parent 7f46002 commit de8a132
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- name: Install Dependencies
run: npm ci
- name: Build CSS
run: npm run build:css
- name: Publish
run: npm publish
continue-on-error: true
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@nasa-jpl/stellar",
"description": "A CSS implementation of the Stellar design system.",
"type": "module",
"version": "1.1.11",
"version": "1.1.12",
"license": "MIT",
"repository": {
"type": "git",
Expand All @@ -11,7 +11,8 @@
"scripts": {
"build:css": "rm -rf css && sass scss:css",
"build:icons": "node scripts/build-icons.js",
"lint": "stylelint scss/**/*.scss --fix"
"lint": "stylelint scss/**/*.scss --fix",
"prepublishOnly": "npm run build:css"
},
"devDependencies": {
"sass": "^1.60.0",
Expand Down

0 comments on commit de8a132

Please sign in to comment.