Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Publishing the plugin

Thibault Maekelbergh edited this page Mar 21, 2019 · 3 revisions

Getting started

To certify as published and natively supported in Sketch, the plugin needs to be listed on https://www.sketchapp.com/extensions/plugins/ via a PR against the official plugin repo.

Make sure the repository field is set in your package.json:

...
+ "repository": "https://github.com/inthepocket/hubble-sketch-plugin",
...

If you're publishing for the first time and after the PR to the upstream Sketch plugin repo is merged, use:

# Replace with your Github access token (with permissions: `repo`)
$ npx skpm login <token>
$ npx skpm publish

skpm publish will create a new release on your GitHub repository and create an appcast file in order for Sketch users to be notified of the update.

Publishing a new version

👉 Make sure you are always releasing on the master branch and use skpm or the provided run-tasks.

An npm run-task is provided to automate releasing a new version of the plugin. You should update according to the appropriate semver level:

$ npm run release:minor

This will automatically create a new tag, and an update will be available in Sketch or via Sketch Runner.