Skip to content

Conversation

@rax-it
Copy link
Contributor

@rax-it rax-it commented Aug 25, 2025

Details

Remove nucleus config and move the npm publish to a manually triggered release action which takes a semantic version as user input.

Does this pull request introduce a breaking change?

  • 😮‍💨 No, it does not introduce a breaking change.

Does this pull request introduce an observable change?

  • 🤞 No, it does not introduce an observable change.

GUS work item

W-16628948

@rax-it rax-it marked this pull request as ready for review August 26, 2025 21:55
@rax-it rax-it requested a review from a team as a code owner August 26, 2025 21:55
@rax-it rax-it removed the request for review from a team August 26, 2025 22:21
@rax-it rax-it force-pushed the rave/github-action-publish branch from 02e3f01 to de4e600 Compare August 26, 2025 22:35
@rax-it rax-it changed the title chore: test feat(release): move npm publish to github actions Aug 26, 2025
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
TAG=$([ "$GITHUB_REF_NAME" = "master" ] && echo latest || echo "$GITHUB_REF_NAME")
Copy link
Contributor

Choose a reason for hiding this comment

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

How do we ensure that we only release using winter*/spring*/summer* tags, and we don't accidentally release a tag called rave/github-action-publish?

How do we ensure that only repo maintainers can trigger the workflow?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a conditional for branch validation.

How do we ensure that only repo maintainers can trigger the workflow?

This should help with only lwc-admin members should be able to approve workflow run requests.

Comment on lines 40 to 47
node -e "
const fs=require('fs');
const semver=require('semver');
const current=JSON.parse(fs.readFileSync('package.json','utf8')).version;
const next=process.env.INPUT_VERSION;
if(!semver.valid(next)) { console.error('Invalid semver: '+next); process.exit(1); }
if(!semver.gt(next,current)) { console.error(`Version ${next} must be greater than current ${current}`); process.exit(1); }
"
Copy link
Member

Choose a reason for hiding this comment

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

Would it be possible to restrict the release to our specific release branches? eg, summer*, winter*, spring*, master?

Is that something we can do in the GHA UI?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a condition to release job to only be able to run from specified branches and non-fork repos.

@rax-it rax-it requested review from jmsjtu and wjhsf August 27, 2025 18:06
Copy link
Contributor

@wjhsf wjhsf left a comment

Choose a reason for hiding this comment

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

We can also remove scripts/release/*.sh, because they're no longer necessary.

@rax-it rax-it merged commit 6ea26d2 into master Aug 28, 2025
6 checks passed
@rax-it rax-it deleted the rave/github-action-publish branch August 28, 2025 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants