Skip to content

Commit

Permalink
fix(release): fix semantic release github by using this branch while …
Browse files Browse the repository at this point in the history
…the merge happens

use semantic release github fork while
semantic-release/github#487 is still waiting to
be merged. the issue is semantic release times out in release on the
github package but does publish.

also fixes the error where I put only one file in the package.json.
instead we copy the README.md from the root package into the package/
file before we publish
  • Loading branch information
ryanbas21 committed Dec 10, 2022
1 parent 35994cb commit 6591d84
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 123 deletions.
218 changes: 97 additions & 121 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^8.0.7",
"@semantic-release/github": "https://registry.npmjs.org/@achingbrain/semantic-release-github/-/semantic-release-github-0.0.0.tgz",
"@semantic-release/npm": "^9.0.1",
"@semantic-release/release-notes-generator": "^10.0.3",
"@storybook/addon-a11y": "^6.5.13",
Expand Down
1 change: 0 additions & 1 deletion package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
"./inline": "./inline.js",
"./modal": "./modal.js"
},
"files": ["../README.md"],
"dependencies": {}
}
5 changes: 5 additions & 0 deletions tools/edit-package.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ const pkg = require('../package/package.json');
pkg.version = process.argv[process.argv.length - 1];

const pkgPath = path.resolve(__dirname, '../package/package.json');
const readme = path.resolve(__dirname, '../README.md');

fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2));
fs.cp(readme, './package/README.md', (err) => {
if (err) console.error('error copying readme', err);
});

0 comments on commit 6591d84

Please sign in to comment.