Collaboration.md
This document describes how collaborators of this repository should work together.
master only for releases or other urgent issues (update notification is only triggered by tags)Are done by
develop branchprep-release branch from develop
package.json and package-lock.json to reflect correct version number 2.xx.0prep-release branchprep-release to develop branch with title Prepare Release 2.xx.0developunreleased
v2.xx.0develop to master branch
mastermergeRelease 2.xx.0v2.xx.0master into the new PR and solve the conflictsv2.xx.0
v2.xx.0 (with Select tag and then Create new tag)Compare to previous Release by replacing develop with new tag v2.xx.0develop branchpackage.json and package-lock.json to reflect correct version number 2.xx.0-developdevelop branchready (coming with next release)develop on master in documentation repositorymaster branch and cd into the local repository directorynpm login which will open a browser windownpm publish⚠️ Note: This method bypasses 2FA and should only be used when a browser is not available
goto https://www.npmjs.com/settings/<username>/tokens/ and click generate new token
enable Bypass two-factor authentication (2FA) and under Packages and scopes give Read and write permission to the magicmirror package, press Generate token
execute:
NPM_TOKEN="npm_xxxxxx"
npm set "//registry.npmjs.org/:_authToken=$NPM_TOKEN"
npm publish