Skip to content

ci(release): use trusted publishers, update lerna deps#112

Merged
nicklmart merged 4 commits intomainfrom
ci/trusted-publisher
Mar 16, 2026
Merged

ci(release): use trusted publishers, update lerna deps#112
nicklmart merged 4 commits intomainfrom
ci/trusted-publisher

Conversation

@nicklmart
Copy link
Copy Markdown
Contributor

@nicklmart nicklmart commented Mar 13, 2026

Description

Prepare a workflow that can be used with npm's new trusted publisher system.

Motivation and Context

This system uses OIDC and is more secure (and requires less maintenance) than generating a 90 day token.

update to Lerna 9 which supports OIDC: https://lerna.js.org/docs/recipes/oidc-trusted-publishing

How Has This Been Tested?

CI change, all tests green.

Types of Changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation (adding or updating documentation)
  • Dependency update

Checklist:

  • My change requires a change to the documentation and I have updated the documentation accordingly.
  • My changes are in sync with the code style of this project.
  • There aren't any other open Pull Requests for the same issue/update.
  • These changes should be applied to a maintenance branch.
  • I have added the Apache 2.0 license header to any new files created.

What is the Impact to Developers Using Jest-Image-Snapshot?

This package will be releasable again!

@nicklmart nicklmart requested review from a team as code owners March 13, 2026 21:12
@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 13, 2026

CLA assistant check
All committers have signed the CLA.

nicklmart and others added 3 commits March 13, 2026 17:29
* feat(fetchye): expose computeKey

* feat(fetchye-one-app): add streamedFetchye thunk

* feat(fetchye-one-app): add useStreamedFetchye hook

* chore(docs): add streaming docs

* chore(jest): update test patterns to target nested directories

* chore(nvmrc): match node version from actions

* chore(lint): resolve lint errors

* feat(fetchye): add throwOnError option for streaming (#111)

* feat(fetchye): add throwOnError option for streaming

* chore(docs): update docs with throwOnError option

* chore(fetchye-one-app): rename streamedFetchye to streamFetchye

* refactor(fetchye-one-app): change thunk arg for streamFetchye from promise to function

* feat(fetchye-one-app): throw error when response error is present
@nicklmart nicklmart force-pushed the ci/trusted-publisher branch from 4624fac to 77a0bf0 Compare March 13, 2026 21:31
Comment on lines +41 to +44
if: "startsWith(needs.checkCommit.outputs.commitMsg, 'chore(release):')"
env:
NODE_ENV: production
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |-
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> $HOME/.npmrc 2> /dev/null
yarn lerna:deploy -- "${{ needs.checkCommit.outputs.commitMsg }}"
run: yarn lerna:publish
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this should maintain the same behavior as before

@@ -0,0 +1 @@
registry=https://registry.npmjs.org
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

yarn 1 honors .npmrc files

@nicklmart nicklmart merged commit 529105d into main Mar 16, 2026
5 of 6 checks passed
@nicklmart nicklmart deleted the ci/trusted-publisher branch March 16, 2026 15:44
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.

5 participants