Skip to content

Instantly share code, notes, and snippets.

View RupertBarrow's full-sized avatar

Rupert Barrow RupertBarrow

View GitHub Profile
@RupertBarrow
RupertBarrow / Publishing to Github Packages NPM registry.md
Last active January 2, 2024 22:18
Publishing to Github Packages NPM registry.md

Publishing to the Github Packages registry for npm

Introduction

This is about :

  • publishing to an NPM registry
  • ... which is the Github Packaged registry (for NPM)
  • ... with semantic-release
  • ... in a Github Actions CI workflow
@RupertBarrow
RupertBarrow / multiline Github Actions output.md
Last active December 29, 2023 10:04
Github Actions - multiline output from a step, with GITHUB_OUTPUT
CumulusCI version: 3.69.0
Python version: 3.10.2 (/Users/rupert/.local/pipx/venvs/cumulusci/bin/python)
Environment Info: Darwin / x86_64
Last Command Run
================================
/Users/rupert/.local/bin/cci task run push_qa --orgs orgs/qa_orgs.txt --org devhub --metadata_package_id 0337S000000PXXXXXX --debug
[11/23/22 20:14:07] DEBUG Added rich.logging.RichHandler to logger: urllib3 ]8;id=90308;file:///Users/rupert/.local/pipx/venvs/cumulusci/lib/python3.10/site-packages/cumulusci/cli/logger.py\logger.py]8;;\:]8;id=255804;file:///Users/rupert/.local/pipx/venvs/cumulusci/lib/python3.10/site-packages/cumulusci/cli/logger.py#53\53]8;;\
[11/23/22 20:14:08] DEBUG Starting new HTTPS connection (1): xxx.my.salesforce.com:443 ]8;id=785739;file:///Users/rupert/.local/pipx/venvs/cumulusci/lib/python3.10/site-packages/urllib3/connectionpool.py\connectionpool.py]8;;\:]8;id=716435;file:///Users/rupert/.local/pipx/venvs/cumulusci/lib/python3.10/s
@RupertBarrow
RupertBarrow / jq-cheetsheet.md
Created May 11, 2022 08:05 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@RupertBarrow
RupertBarrow / diagram.css
Created January 3, 2022 07:19 — forked from isaacplmann/diagram.css
D3 Diagram with left/right aligned links
#chart text {
fill: white;
font: 10px Helvetica;
text-anchor: end;
}
line {
/*stroke: black;*/
}
line:first-child.notify,
line:first-child.precheck,
@RupertBarrow
RupertBarrow / README.md
Last active July 15, 2024 02:09
Gestion des badges de test

Gestion des badges générés par Github Actions

@RupertBarrow
RupertBarrow / SFDX - how to reinstall a new version on MacOS.md
Last active July 26, 2020 12:34
SFDX - reinstall a new version on MacOS

Type the following commands to uninstall the current version (taken from here):

sudo rm -rf /usr/local/sfdx
sudo rm -rf /usr/local/lib/sfdx
sudo rm -rf /usr/local/bin/sfdx
sudo rm -rf ~/.local/share/sfdx ~/.config/sfdx ~/.cache/sfdx
sudo rm -rf ~/Library/Caches/sfdx

Also,