Skip to content

Commit 000e4e1

Browse files
committed
fix(release): publish prereleases as public packages
1 parent f6c8514 commit 000e4e1

5 files changed

Lines changed: 14 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
echo "Tag version ${{ steps.meta.outputs.version }} does not match package.json version $package_version" >&2
4545
exit 1
4646
fi
47-
- run: npm publish --tag "${{ steps.meta.outputs.dist_tag }}" --provenance
47+
- run: npm publish --access public --tag "${{ steps.meta.outputs.dist_tag }}" --provenance
4848
env:
4949
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5050
- uses: softprops/action-gh-release@v2

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 0.1.1-beta.1
4+
5+
- mark npm publishes as public so first-time prerelease publication works with provenance enabled
6+
37
## 0.1.1-beta.0
48

59
- mark the package as an explicit prerelease line

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ If you want reproducible installs instead of automatic plugin refreshes, pin an
2222

2323
```json
2424
{
25-
"plugin": ["opencode-planner@0.1.1-beta.0"]
25+
"plugin": ["opencode-planner@0.1.1-beta.1"]
2626
}
2727
```
2828

@@ -55,7 +55,7 @@ npm test
5555
1. Update `CHANGELOG.md`.
5656
2. Bump the version in `package.json`.
5757
3. Commit the release.
58-
4. Create and push a git tag like `v0.1.1-beta.0` for prereleases or `v0.1.1` for stable releases.
58+
4. Create and push a git tag like `v0.1.1-beta.1` for prereleases or `v0.1.1` for stable releases.
5959
5. Let GitHub Actions publish to npm using the correct dist-tag.
6060
6. Publish matching GitHub release notes.
6161

@@ -67,7 +67,7 @@ Set this repository secret for automated npm publishing:
6767

6868
- `NPM_TOKEN`
6969

70-
The release workflow publishes prerelease tags like `v0.1.1-beta.0` to the npm `beta` dist-tag, stable tags like `v0.1.1` to `latest`, and creates matching GitHub release notes automatically.
70+
The release workflow publishes prerelease tags like `v0.1.1-beta.1` to the npm `beta` dist-tag, stable tags like `v0.1.1` to `latest`, and creates matching GitHub release notes automatically.
7171

7272
## License
7373

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "opencode-planner",
3-
"version": "0.1.1-beta.0",
3+
"version": "0.1.1-beta.1",
44
"description": "Experimental OpenCode plugin that adds a dedicated planning agent with read-only planning constraints.",
55
"type": "module",
66
"author": "Tim Richardson",
@@ -29,5 +29,8 @@
2929
"bugs": {
3030
"url": "https://github.com/timrichardson/opencode-planner/issues"
3131
},
32+
"publishConfig": {
33+
"access": "public"
34+
},
3235
"license": "MIT"
3336
}

0 commit comments

Comments
 (0)