diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 2f5fd59..1b7b61c 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,8 +1,15 @@ name: Publish +# Triggered when a version tag (`v*`) is pushed — typically by `pnpm run release`, +# which uses release-it to bump the version, commit, tag, push, and create a +# GitHub Release with auto-generated notes. The npm publish itself happens here +# so a) the publish artifact is built in a clean CI environment, and b) the git +# tag and the npm version are guaranteed to match. + on: push: - branches: [main] + tags: + - 'v*' workflow_dispatch: jobs: @@ -23,7 +30,11 @@ jobs: with: version: 10.12.4 - - run: pnpm install + - run: pnpm install --frozen-lockfile + + - run: pnpm lint + + - run: pnpm test --run - run: pnpm run build diff --git a/.release-it.json b/.release-it.json new file mode 100644 index 0000000..5bde283 --- /dev/null +++ b/.release-it.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://unpkg.com/release-it/schema/release-it.json", + "git": { + "tagName": "v${version}", + "tagAnnotation": "v${version}", + "commitMessage": "v${version}", + "requireBranch": "main", + "requireCleanWorkingDir": true, + "push": true + }, + "github": { + "release": true, + "releaseName": "v${version}", + "autoGenerate": true + }, + "npm": { + "publish": false + }, + "hooks": { + "before:init": ["pnpm lint", "pnpm test --run"], + "after:bump": "pnpm run build" + } +} diff --git a/README.md b/README.md index 6ac449f..6bb7bed 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ For permanent deployments and full control over your sites and domains, add a fr | Operation | Description | | ------------ | ------------------------------------------------------------------------------- | | **Get** | Get domain details including linked deployment, verification status, and labels | -| **List** | List all domains with their linked deployments and verification status | +| **List** | List all domains with their linked deployment and verification status | | **Records** | Get the DNS records you need to configure at your DNS provider | | **Remove** | Permanently disconnect and remove a custom domain | | **Set** | Connect a custom domain to your site, switch deployments, or update labels | diff --git a/nodes/Shipstatic/Shipstatic.node.ts b/nodes/Shipstatic/Shipstatic.node.ts index ea056c2..a79bafa 100644 --- a/nodes/Shipstatic/Shipstatic.node.ts +++ b/nodes/Shipstatic/Shipstatic.node.ts @@ -255,7 +255,7 @@ export class Shipstatic implements INodeType { { name: 'List', value: 'list', - description: 'List all domains with their linked deployments and verification status', + description: 'List all domains with their linked deployment and verification status', action: 'List all domains', }, {