Skip to content

Fix some issues in the release #4709

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 24, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ p5-website/
coverage/
lib/p5-test.js
release/
parameterData.json
yarn.lock
6 changes: 6 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,5 +561,11 @@ module.exports = grunt => {
'watch:yui'
]);
grunt.registerTask('yui:build', ['yui']);

// This is called by the "prepublishOnly" script in package.json to build the
// documentation and the library after np bumps up the version number so that
// the newly built files with the updated version number can be published.
grunt.registerTask('prerelease', ['yui', 'build']);

grunt.registerTask('default', ['lint-no-fix', 'test']);
};
2 changes: 1 addition & 1 deletion contributor_docs/release_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ npm run release
* `np` will then reinstall `node_modules` then run tests with `npm test`.
* `np` will bump the version according to what was selected at the beginning.
* If any step prior to this failed, the repo will be reverted to its initial state before running `npm run release`.
* The task mentioned in `prepublishOnly` in `package.json` will run ( `grunt prerelease` ) to build the documentation and the library with the updated version number
* The NPM package is published.
* Release on NPM : __Only__ the files mentioned in `files` in `package.json` are published.
* Tags and local commits are pushed to the git remote.
* A draft release is created on github.com with changelogs that can be edited.
* Create a Zip file `p5.zip` of `lib` folder (now includes the empty example), which should be uploaded in the GitHub Release draft created above.
* After this process completes a window pointing at `release/` will open and it will contain all the files that should be uploaded as part of the Github Release.
* Push the newly built library to [p5.js-release](https://github.com/processing/p5.js-release) repo for Bower.
* Building the Docs: This is run as `grunt yui`
* Push the newly built reference to [p5.js-website](https://github.com/processing/p5.js-website)

## Testing
Expand Down
Loading