Skip to content
This repository has been archived by the owner on Feb 22, 2021. It is now read-only.

Commit

Permalink
chore(release): fix build not running before publish
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi committed Aug 12, 2019
1 parent 202c62b commit 8f4a599
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .github/main.workflow
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ workflow "Publish on Release" {
resolves = ["publish"]
}

action "install" {
uses = "actions/npm@59b64a598378f31e49cb76f27d6f3312b582f680"
args = "install"
}

action "publish" {
needs = "install"
uses = "actions/npm@59b64a598378f31e49cb76f27d6f3312b582f680"
args = "publish"
args = "publish --unsafe-perm"
secrets = ["NPM_AUTH_TOKEN"]
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "respec-caniuse-route",
"version": "3.0.0",
"version": "3.0.1",
"description": "API endpoint handler for getting caniuse data in a ReSpec friendly way. Used in respec.org",
"main": "index.js",
"type": "module",
Expand All @@ -17,7 +17,7 @@
"build": "tsc -d",
"clean": "rm -rf *.js *.d.ts",
"dev": "tsc -w",
"prepare": "npm run clean && npm run build"
"prepublishOnly": "npm run clean && npm run build"
},
"devDependencies": {
"@types/node": "^12.7.1",
Expand Down

0 comments on commit 8f4a599

Please sign in to comment.