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
2 changes: 0 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,3 @@ jobs:
echo "dist=latest" >> "$GITHUB_OUTPUT"
fi
- run: npm publish --provenance --access public --tag ${{ steps.tag.outputs.dist }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,14 @@ the built binary and check its output, so `npm test` builds first.
Pushing a version tag runs the publish workflow, which lints, builds, tests, then
publishes to npm with provenance.

Main only takes pull requests, so bump `package.json` on a branch and deliver it
as a pull request. Once that merges, tag the merge commit on main and push the
tag. Tagging the branch commit instead would leave the tag pointing at a commit
the squash merge discards.

```
npm version patch # bumps package.json and creates the tag
git push --follow-tags
git tag v0.0.2 <merge commit>
git push origin v0.0.2
```

A plain tag (`v0.0.1`) publishes under `latest`. A prerelease tag (`v0.0.1-rc.1`)
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": "@gaffa-dev/cli",
"version": "0.0.1",
"version": "0.0.2",
"description": "The Gaffa command line tool.",
"license": "MIT",
"author": {
Expand Down
Loading