Skip to content

Commit 05a6ef2

Browse files
committed
Update github action
1 parent b3d76c0 commit 05a6ef2

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,7 @@ jobs:
5050
- name: Get version
5151
id: get_version
5252
run: |
53-
TAG="${GITHUB_REF#refs/tags/}"
54-
VERSION="${TAG#v}"
53+
VERSION="${GITHUB_REF#refs/tags/}"
5554
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
5655
echo "Publishing @pelagornis/prompt-guide@$VERSION"
5756
@@ -76,9 +75,9 @@ jobs:
7675
uses: softprops/action-gh-release@v2
7776
with:
7877
tag_name: ${{ github.ref_name }}
79-
name: v${{ steps.get_version.outputs.version }}
78+
name: ${{ steps.get_version.outputs.version }}
8079
body: |
81-
## prompt-guide v${{ steps.get_version.outputs.version }}
80+
## prompt-guide ${{ steps.get_version.outputs.version }}
8281
8382
### Install
8483
```bash

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ To create a new release, use the GitHub UI at: [Pelagornis Releases](https://git
1414
The **@pelagornis/prompt-guide** CLI package is published to npm via GitHub Actions when a **version tag** is pushed. Workspace packages under `packages/` stay private and are bundled into the CLI at build time.
1515

1616
1. **One-time setup**: On [npmjs.com](https://www.npmjs.com/package/@pelagornis/prompt-guide), configure **Trusted publishers** (GitHub Actions OIDC) — repository `pelagornis/prompt-guide`, workflow `release.yml`. No `NPM_TOKEN` secret is required.
17-
2. **Release**: Create and push a tag matching `v*` (e.g. `v1.0.5`). The workflow [.github/workflows/release.yml](.github/workflows/release.yml) will bump `packages/cli/package.json` from the tag, build, and publish with OIDC trusted publishing.
17+
2. **Release**: Create and push a version tag (e.g. `1.0.5`). The workflow [.github/workflows/release.yml](.github/workflows/release.yml) will bump `packages/cli/package.json` from the tag, build, and publish with OIDC trusted publishing.
1818

1919
```bash
20-
git tag v1.0.1
21-
git push origin v1.0.1
20+
git tag 1.0.5
21+
git push origin 1.0.5
2222
```
2323

24-
The tag version (e.g. `1.0.1`) is applied to all `packages/*/package.json` files in the workflow; you do not need to bump versions in the repo before tagging.
24+
The tag name (e.g. `1.0.5`) is applied to `packages/cli/package.json` in the workflow; you do not need to bump versions in the repo before tagging.
2525

2626
### Versioning
2727

0 commit comments

Comments
 (0)