Skip to content

Commit

Permalink
Updates workflow for dist
Browse files Browse the repository at this point in the history
  • Loading branch information
kristoferjoseph committed Oct 25, 2023
1 parent 0472f04 commit 6603308
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,20 @@ jobs:
# Go
steps:
- name: Check out repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: 14
registry-url: https://registry.npmjs.org/

- name: Install
run: npm ci

- name: Dist
run: npm run dist


# Publish to npm
- name: Publish @RC to npm
if: contains(github.ref, 'RC')
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@
"description": "Functional utility classes",
"main": "index.mjs",
"type": "module",
"module": "./dist/enhance.min.css",
"bin": {
"enhance-styles": "./cli.mjs"
},
"style": "enhance.css",
"scripts": {
"build": "node ./cli.mjs > ./enhance.css",
"minify": "postcss ./enhance.css > ./enhance.min.css",
"prod": "run-s build minify",
"build": "node ./cli.mjs > ./dist/enhance.css",
"minify": "postcss ./dist/enhance.css > ./dist/enhance.min.css",
"dist": "run-s build minify",
"test": "tape './test/**/**.test.js' | tap-arc"
},
"repository": {
Expand Down

0 comments on commit 6603308

Please sign in to comment.