Skip to content

Commit

Permalink
feat: build dist folder
Browse files Browse the repository at this point in the history
  • Loading branch information
bahmutov committed Nov 10, 2019
1 parent ba181c7 commit b3468fa
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
dist
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ inputs:
default: false
runs:
using: 'node12'
main: 'index.js'
main: 'dist/index.js'
branding:
color: 'green'
icon: 'check-square'
6 changes: 6 additions & 0 deletions package-lock.json

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

10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
"version": "0.0.0-development",
"description": "GitHub Action for running Cypress end-to-end tests",
"private": false,
"main": "index.js",
"main": "dist/index.js",
"files": [
"index.js",
"dist",
"action.yml"
],
"scripts": {
"test": "echo \"There are no tests :(\"",
"semantic-release": "semantic-release"
"build-for-release": "ncc build -o dist index.js && git add -f dist",
"semantic-release": "npm run build-for-release && semantic-release"
},
"repository": {
"type": "git",
Expand All @@ -33,8 +34,9 @@
"hasha": "5.1.0"
},
"devDependencies": {
"prettier": "1.19.1",
"@types/node": "^12.0.4",
"@zeit/ncc": "0.20.5",
"prettier": "1.19.1",
"semantic-release": "^15.13.30"
},
"publishConfig": {
Expand Down

0 comments on commit b3468fa

Please sign in to comment.