diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 75b9c8a6..93f85b2a 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -27,7 +27,10 @@ jobs: # create_tag: "true" # whether to create a git tag or not (defaults to "true") commit_pattern: "^Release (\\S+)" # pattern that the commit message needs to follow workspace: "." # custom workspace directory that contains the package.json file - publish_command: "npm" # custom publish command (defaults to yarn) + # + # + # I COULD ONLY GET THIS TO WORK USING "yarn" + publish_command: "yarn" # custom publish command (defaults to yarn) # publish_args: "--non-interactive" # publish command arguments (for example --prod --verbose, defaults to empty) env: diff --git a/package.json b/package.json index c9afa72b..7a253594 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "publishConfig": { "access": "public" }, - "version": "2.1.16", + "version": "2.1.17", "description": "Datatable for React based on https://material-ui.com/api/table/ with additional features", "main": "dist/index.js", "types": "types/index.d.ts", @@ -15,6 +15,7 @@ "extends": "./configs/.babelrc" }, "scripts": { + "prepublish": "npm install && npm run build", "start": "webpack-dev-server --config ./demo/webpack.config.js --mode development", "build": "babel src --out-dir dist", "lint": "npm run eslint && npm run tsc",