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
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release parallax-cli

on:
workflow_dispatch:

permissions:
id-token: write
contents: read

jobs:
publish:
runs-on: ubuntu-latest
timeout-minutes: 20

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 23.7.0
cache: pnpm
registry-url: https://registry.npmjs.org

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Setup npm for trusted publishing
run: npm install -g npm@11.5.1

- name: Publish parallax-cli to npm
run: pnpm --dir packages/cli publish:package
17 changes: 12 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,20 @@ Parallax is published as a single global CLI package:
npm i -g parallax-cli
```

Release steps:
Releases are published through the manual GitHub Actions workflow:

- open the `Release parallax-cli` workflow in GitHub Actions
- trigger it with `Run workflow`
- the workflow publishes the exact version already set in [`packages/cli/package.json`](packages/cli/package.json)

Repository requirement:

- configure npm trusted publishing for this repository/package in npm

Before triggering the release, update the version in:

```bash
pnpm install
pnpm release:pack
# inspect packages/cli/parallax-cli-0.0.3.tgz, then:
pnpm release:publish
packages/cli/package.json
```

Then on Raspberry Pi / any machine:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "parallax",
"version": "0.0.3",
"version": "0.0.4",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "parallax-cli",
"version": "0.0.3",
"version": "0.0.4",
"type": "module",
"bin": {
"parallax": "dist/cli/src/index.js"
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/scripts/prepare-package.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const bundledPackages = [
sourceDir: path.join(workspaceRoot, 'packages/common'),
packageJson: {
name: '@parallax/common',
version: '0.0.3',
version: '0.0.4',
type: 'module',
main: './dist/index.js',
types: './dist/index.d.ts',
Expand All @@ -38,7 +38,7 @@ const bundledPackages = [
sourceDir: path.join(workspaceRoot, 'packages/orchestrator'),
packageJson: {
name: '@parallax/orchestrator',
version: '0.0.3',
version: '0.0.4',
type: 'module',
},
},
Expand All @@ -47,7 +47,7 @@ const bundledPackages = [
sourceDir: path.join(workspaceRoot, 'packages/ui'),
packageJson: {
name: '@parallax/ui',
version: '0.0.3',
version: '0.0.4',
type: 'module',
},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@parallax/common",
"version": "0.0.3",
"version": "0.0.4",
"private": true,
"type": "module",
"main": "./dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/marketing/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@parallax/marketing",
"private": true,
"version": "0.0.3",
"version": "0.0.4",
"type": "module",
"scripts": {
"dev": "node ./scripts/sync-docs.mjs && vite",
Expand Down
2 changes: 1 addition & 1 deletion packages/orchestrator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@parallax/orchestrator",
"version": "0.0.3",
"version": "0.0.4",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@parallax/ui",
"private": true,
"version": "0.0.3",
"version": "0.0.4",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
Loading