- Install Verdaccio -
npm install --global verdaccio
|yarn global add verdaccio
- Register an account and organization at npmjs.com. The org can be your github handle, or anything else you'd like. The org will be the "scope" for your package, i.e.
@my-org/my-package
- Install
[asdf](http://asdf-vm.com/guide/getting-started.html#_3-install-asdf)
then runasdf install nodejs 14.17.6
Last active
October 21, 2021 21:29
-
-
Save good-idea/b032eeaed97f351a27ac6683893334d1 to your computer and use it in GitHub Desktop.
OSS Workshop instructions
- Create a fork of the OSS Workshop repo within github
- Clone your forked repository to your computer
- Checkout to a new branch:
git checkout -b fix/some-fix
- Make your changes to the codebase
- Commit your messasges using the 'conventional commits' guidelines in the repository
- Push your changes back up to your repo
- Create a pull request for your changes
- Clone the existing OSS Workshop repository. (Or your fork, if you have one)
- We'll be using this repo as a boilerplate for our personal libraries :)
- In Github, create a new empty repo called
toolkit
. - Change the following:
- in
package.json
:- change the
name
of the project@your-handle/toolkit
- whereyour-handle
is the name of the Org you registered on npmjs.com - change the
author
field to be your name :) - change the
version
field to be1.0.0
- change the
- in
all-contributorsrc
, remove the values withincontributors
so it is just an empty array - in
README.md
, remove the<table>
within the Contributors sections (but leave the comments in place!)
- Remove the previous remote from git:
git remote rm origin
- Update your remote to point to this new repo:
git remote add origin https://github.com/your-handle/toolkit
- Create a Github Personal Access Token. Make sure the
repo
permissions are checked. - Create an NPM token
- Back in github, go to Settings -> Secrets
- Click "New repository secret" and add one with the following values:
- name:
SEMANTIC_RELEASE_GH_TOKEN
- value: The Github token you generated
- name:
- Repeat the process and add an
NPM_TOKEN
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
--global
flag in Yarn is deprecated, folks using Yarn can useyarn global add verdaccio