Skip to content
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
21 changes: 17 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ on:
push:
tags:
- "v*.*.*"
workflow_dispatch:
inputs:
tag:
description: Existing git tag to publish (e.g. v0.9.1). Leave empty to use the triggering ref.
required: false
type: string

permissions:
contents: read
Expand All @@ -18,16 +24,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
# Allow re-publishing a tag after trusted publishing is configured.
ref: ${{ inputs.tag || github.ref }}

- name: Use Node.js 24.x
uses: actions/setup-node@v5
with:
node-version: 24.x
registry-url: "https://registry.npmjs.org/"
registry-url: https://registry.npmjs.org/
package-manager-cache: false

- run: npm ci
- run: npm run build --if-present
- name: Verify package contents
run: npm pack --dry-run
- run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# Auth via npm Trusted Publishing (OIDC). No long-lived NPM_TOKEN required.
# Provenance is generated automatically for trusted publishes; --provenance is kept for clarity.
- name: Publish to npm
run: npm publish --access public --provenance
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,28 +137,28 @@ macOS:

```sh
# Apple Silicon
curl -L https://github.com/devinpearson/ipb/releases/download/v0.9.1/ipb-macos-arm64 -o ipb
curl -L https://github.com/devinpearson/ipb/releases/download/v0.9.2/ipb-macos-arm64 -o ipb
chmod +x ipb
sudo mv ipb /usr/local/bin/

# Intel
curl -L https://github.com/devinpearson/ipb/releases/download/v0.9.1/ipb-macos-x64 -o ipb
curl -L https://github.com/devinpearson/ipb/releases/download/v0.9.2/ipb-macos-x64 -o ipb
chmod +x ipb
sudo mv ipb /usr/local/bin/
```

Linux (.deb):

```sh
wget https://github.com/devinpearson/ipb/releases/download/v0.9.1/ipb_0.9.1_amd64.deb
sudo dpkg -i ipb_0.9.1_amd64.deb
wget https://github.com/devinpearson/ipb/releases/download/v0.9.2/ipb_0.9.2_amd64.deb
sudo dpkg -i ipb_0.9.2_amd64.deb
sudo apt-get install -f
```

Linux binary:

```sh
curl -L https://github.com/devinpearson/ipb/releases/download/v0.9.1/ipb-linux-x64 -o ipb
curl -L https://github.com/devinpearson/ipb/releases/download/v0.9.2/ipb-linux-x64 -o ipb
# or: ipb-linux-arm64
chmod +x ipb
sudo mv ipb /usr/local/bin/
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "investec-ipb",
"version": "0.9.1",
"version": "0.9.2",
"main": "bin/index.js",
"bin": {
"ipb": "./bin/index.js"
Expand Down