Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade JS-DevTools/npm-publish to v2.2.0 #3456

Merged
merged 1 commit into from
Jun 14, 2023

Conversation

mcous
Copy link
Contributor

@mcous mcous commented Jun 7, 2023

Overview

Hi! I was checking in on closed issues in JS-DevTools/npm-publish and noticed a link-back in JS-DevTools/npm-publish#15 to #3350.

Since npm-publish@v1 uses deprecated GitHub Actions APIs that could stop working at any point, I wanted to help y'all get on v2. There seemed to be two breaking changes that affected your repository:

  • v1 modifies .npmrc by replacing NODE_AUTH_TOKEN (added by actions/setup-node) with INPUT_TOKEN, v2 no longer makes this modification
  • v1 calls npm publish, v2 calls npm publish --ignore-scripts

This PR upgrades the npm-publish package to v2 and modifies the publish workflow accordingly.

Change log

Checklist

  • Tests written for new code (and old code if feasible)
    • Note: unsure how you'd like this tested
    • One method would be to see if I can publish my own scoped version on my fork, if you're interested
  • Linter and other CI checks pass
  • Sign-off given on the changes (see CONTRIBUTING.md)

This change is marked as an internal change (Task), so will not be included in the changelog.

@mcous mcous requested a review from a team as a code owner June 7, 2023 22:59
@mcous mcous requested a review from germain-gg June 7, 2023 22:59
@github-actions github-actions bot added the Z-Community-PR Issue is solved by a community member's PR label Jun 7, 2023
@t3chguy t3chguy added the T-Task Tasks for the team like planning label Jun 8, 2023
@t3chguy
Copy link
Member

t3chguy commented Jun 9, 2023

@mcous really appreciate your contribution here, any chance you could DCO sign off as per https://github.com/vector-im/element-web/blob/develop/CONTRIBUTING.md#sign-off

- Upgrade JS-DevTools/npm-publish to v2.2.0
- Remove workaround for bug JS-DevTools/npm-publish#15
- Remove usage of `jq` in favor of npm-publish output

Signed-off-by: Michael Cousins <[email protected]>
@mcous mcous force-pushed the chore-upgrade-npm-publish branch from 0cf9a48 to 647bc1e Compare June 9, 2023 13:12
@germain-gg germain-gg requested review from t3chguy and removed request for germain-gg June 9, 2023 13:39
Copy link
Member

@t3chguy t3chguy left a comment

Choose a reason for hiding this comment

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

Amazing, thank you for your contribution

@t3chguy t3chguy enabled auto-merge June 14, 2023 07:56
@t3chguy t3chguy added this pull request to the merge queue Jun 14, 2023
Merged via the queue into matrix-org:develop with commit 9f30def Jun 14, 2023
@mcous
Copy link
Contributor Author

mcous commented Jun 14, 2023

Please feel free to ping me here or in JS-DevTools/npm-publish if you run into any issues with this action moving forward!

@mcous mcous deleted the chore-upgrade-npm-publish branch June 14, 2023 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-Task Tasks for the team like planning Z-Community-PR Issue is solved by a community member's PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants