Skip to content

chore(ci): npm-publish via reusable workflows - #766

Merged
UlisesGascon merged 1 commit into
masterfrom
npm-publication
Sep 8, 2026
Merged

chore(ci): npm-publish via reusable workflows#766
UlisesGascon merged 1 commit into
masterfrom
npm-publication

Conversation

@UlisesGascon

Copy link
Copy Markdown
Member

Port the same release process as multer: expressjs/multer#1364

@UlisesGascon UlisesGascon self-assigned this Sep 7, 2026
@UlisesGascon UlisesGascon mentioned this pull request Sep 7, 2026
1 task

@krzysdz krzysdz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in file extension (.ym instead of .yml).

@Phillip9587 Phillip9587 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just 2 small questions but LGTM

uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "lts/*"
registry-url: "https://registry.npmjs.org"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the registry-url needed?

@krzysdz krzysdz Sep 7, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably yes. That's what actions/setup-node docs show.
It has something to do with auth: actions/setup-node#21 (comment)

Iff registry-url is set actions/setup-node creates an .npmrc file with the auth token (set to ${NODE_AUTH_TOKEN}).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the time we decided to explicitly included... I don't recall the detals (cc: @sheplu), but seems quite aligned with @krzysdz

Comment on lines +32 to +35
# npm stage publish requires npm >= 11.15.0
- name: Upgrade npm
run: npm install -g npm@latest

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the lts/* alias already resolves to the latest Node.js 24 with an npm version >11.15.0. So this is only a safeguard?

@Phillip9587

Copy link
Copy Markdown
Member

Is it possible to trigger a v1 release with the release trigger? All release workflows i used an for example the workflows added by Blake in jshttp use a tag pattern as trigger.

@UlisesGascon
UlisesGascon merged commit d4164a1 into master Sep 8, 2026
37 checks passed
@UlisesGascon
UlisesGascon deleted the npm-publication branch September 8, 2026 09:26
@UlisesGascon

Copy link
Copy Markdown
Member Author

Typo in file extension (.ym instead of .yml).

🤦 I missed this comment, I will push a change on the target branch

@UlisesGascon

Copy link
Copy Markdown
Member Author

Corrected in d4d0a5b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants