Skip to content

Commit 0eb9bc1

Browse files
authored
fix: [WIP] Vanilla Script on gh-pages, fix for version incrementing (#131)
* vanilla build on gh-pages, possible fix for semantic release * add fake npm build step to fix github commit issue
1 parent 5c7aae6 commit 0eb9bc1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: .releaserc.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
plugins: [
44
"@semantic-release/commit-analyzer",
55
"@semantic-release/release-notes-generator",
6-
["@semantic-release/npm", { npmPublish: true, pkgRoot: "lib" }],
6+
["@semantic-release/npm", { npmPublish: false }],
77
"@semantic-release/github",
88
[
99
"@semantic-release/git",
@@ -13,5 +13,6 @@ module.exports = {
1313
"chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}",
1414
},
1515
],
16+
["@semantic-release/npm", { npmPublish: true, pkgRoot: "lib" }],
1617
],
1718
}

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"test": "ava **/*.test.js",
2323
"storybook": "start-storybook -p 6002 -s public",
2424
"build-storybook": "build-storybook -s public",
25-
"gh-pages": "npm run build:web && cp ./CNAME ./build/CNAME && gh-pages -d build",
25+
"gh-pages": "npm run build:web && npm run build:vanilla && cp lib/vanilla.js build/vanilla.js && cp ./CNAME ./build/CNAME && gh-pages -d build",
2626
"prettier": "prettier --write \"src/**/*.js\"",
2727
"test:prettier": "prettier --check \"src/**/*.js\"",
2828
"test:integration:dev": "./node_modules/cypress/bin/cypress open",

0 commit comments

Comments
 (0)