Skip to content

ci: Update GitHub Actions workflows to latest versions with improved controls#4

Open
andi1984-ds wants to merge 1 commit intomasterfrom
fix/ci
Open

ci: Update GitHub Actions workflows to latest versions with improved controls#4
andi1984-ds wants to merge 1 commit intomasterfrom
fix/ci

Conversation

@andi1984-ds
Copy link
Copy Markdown
Collaborator

  • Fix NPM publishing: Restrict 'publish-on-cloudsmith' to master branch only (prevents PRs from publishing)
  • Add concurrency controls: Serialize package publishing (1 at a time) and builds to prevent race conditions
  • Upgrade deprecated actions: actions/checkout v3→v4, actions/setup-node v3→v4, actions/upload-artifact v3→v4
  • Add npm dependency caching: Speeds up builds by caching node_modules
  • Add artifact retention policy: Set 60-day retention for all artifacts per requirements
  • Improve formatting: Consistent indentation and formatting across all workflows

Fixes:

  • NPM package builds no longer run on pull requests
  • Resolves deprecation warning for actions/upload-artifact@v3
  • Eliminates potential race conditions with concurrency control

…controls

- Fix NPM publishing: Restrict 'publish-on-cloudsmith' to master branch only (prevents PRs from publishing)
- Add concurrency controls: Serialize package publishing (1 at a time) and builds to prevent race conditions
- Upgrade deprecated actions: actions/checkout v3→v4, actions/setup-node v3→v4, actions/upload-artifact v3→v4
- Add npm dependency caching: Speeds up builds by caching node_modules
- Add artifact retention policy: Set 60-day retention for all artifacts per requirements
- Improve formatting: Consistent indentation and formatting across all workflows

Fixes:
- NPM package builds no longer run on pull requests
- Resolves deprecation warning for actions/upload-artifact@v3
- Eliminates potential race conditions with concurrency control
@andi1984-ds andi1984-ds self-assigned this Mar 4, 2026
@andi1984-ds andi1984-ds requested a review from a team March 4, 2026 11:01

- uses: actions/setup-node@v4
with:
node-version: '16'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Is it possible to update node-version?


- uses: actions/setup-node@v4
with:
node-version: '16'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Same as above.

- uses: actions/setup-node@v4
with:
node-version: '16'
cache: 'npm'
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Same.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants