Skip to content

Commit 3042d3b

Browse files
authored
Merge pull request #5 from No898/update
Prepare 2.2.0 release
2 parents c2740fc + c96447d commit 3042d3b

2 files changed

Lines changed: 12 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,16 @@ jobs:
3636

3737
permissions:
3838
contents: read
39+
id-token: write
3940

4041
steps:
4142
- name: Checkout repository
4243
uses: actions/checkout@v4
4344

44-
- name: Use Node.js from .nvmrc
45+
- name: Use Node.js for trusted publishing
4546
uses: actions/setup-node@v4
4647
with:
47-
node-version-file: ".nvmrc"
48+
node-version: "24"
4849
cache: npm
4950
registry-url: "https://registry.npmjs.org"
5051

@@ -71,5 +72,3 @@ jobs:
7172
- name: Publish to npm
7273
if: steps.release_state.outputs.should_publish == 'true'
7374
run: npm publish --access public
74-
env:
75-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,14 +332,22 @@ Update the package version, then merge the change into `main` or `master`.
332332

333333
The release workflow runs only on pushes to `main` and `master`, plus manual dispatches from those branches. It publishes only when `package.json` is ahead of the current npm version, so routine merges without a version bump are skipped cleanly.
334334

335+
Publishing uses npm trusted publishing via GitHub Actions OIDC. Configure the package on npm with:
336+
337+
- publisher: `GitHub Actions`
338+
- organization or user: `No898`
339+
- repository: `RocketCursor`
340+
- workflow filename: `ci.yml`
341+
- environment name: leave empty unless you use a protected GitHub Actions environment
342+
335343
Recommended flow:
336344

337345
- run `npm run version:patch`, `npm run version:minor`, or `npm run version:major`
338346
- commit the version bump
339347
- merge the branch into `main` or `master`
340348
- let GitHub Actions publish automatically, or trigger the release workflow manually from `main`/`master`
341349

342-
The release workflow expects an `NPM_TOKEN` repository secret with publish access.
350+
After trusted publishing is configured, you do not need an `NPM_TOKEN` secret for releases.
343351

344352
If you want to verify the version manually before tagging, run:
345353

0 commit comments

Comments
 (0)