Skip to content

ci: Update npm-publish workflow for 1st party actions, permissions and node#1749

Closed
turbobobbytraykov wants to merge 6 commits into
masterfrom
btraykov/update-publish-workflow
Closed

ci: Update npm-publish workflow for 1st party actions, permissions and node#1749
turbobobbytraykov wants to merge 6 commits into
masterfrom
btraykov/update-publish-workflow

Conversation

@turbobobbytraykov

@turbobobbytraykov turbobobbytraykov commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Updated workflow to use newer action versions and added permissions for id-token and contents - just like in the master branch
+
updated actions/checkout to v7
+
updated node 20 -> 24

Description

Make sure we are aligned with the current practices that are already applied to the master branch.

Related Issue

N/A

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update
  • Refactoring / code cleanup
  • Build / CI configuration change

Affected Packages

  • igniteui-cli (packages/cli)
  • @igniteui/cli-core (packages/core)
  • @igniteui/angular-templates (packages/igx-templates)
  • @igniteui/angular-schematics (packages/ng-schematics)
  • @igniteui/mcp-server (packages/igniteui-mcp)

Checklist

  • I have tested my changes locally (npm run test)
  • I have built the project successfully (npm run build)
  • I have run the linter (npm run lint)
  • I have added/updated tests as needed
  • My changes do not introduce new warnings or errors

Additional Context

N/A

Updated workflow to use newer action versions and added permissions for id-token and contents.
@coveralls

coveralls commented Jul 10, 2026

Copy link
Copy Markdown

Coverage Status

coverage: 87.816%. remained the same — btraykov/update-publish-workflow into master

@kdinev
kdinev changed the base branch from vNext to master July 10, 2026 08:58
@damyanpetev

Copy link
Copy Markdown
Member

@turbobobbytraykov it'd appear the publish workflow is already updated to actions@6 and node 24 looking at the state in master:

- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24

https://github.com/IgniteUI/igniteui-cli/blob/master/.github/workflows/npm-publish.yml

Thus the conflicts :)

Comment thread .github/workflows/npm-publish.yml
Comment thread .github/workflows/npm-publish.yml
@damyanpetev
damyanpetev removed the request for review from rkaraivanov July 10, 2026 11:31
kdinev
kdinev previously approved these changes Jul 14, 2026
Co-authored-by: Damyan Petev <damyanpetev@users.noreply.github.com>

Copilot AI 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.

Pull request overview

Updates the GitHub Actions npm-publish workflow to align with newer CI practices (updated 1st-party actions, explicit permissions, and a newer Node runtime) for publishing packages on release creation.

Changes:

  • Adds explicit workflow permissions (id-token: write, contents: read).
  • Updates actions/checkout / actions/setup-node action versions and bumps Node from 20 to 24.
  • Refactors npm tag selection logic and introduces an MCP package validation step.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/npm-publish.yml
Comment thread .github/workflows/npm-publish.yml Outdated
@turbobobbytraykov turbobobbytraykov changed the title (ci) Update npm-publish workflow for 1st party actions, permissions and node ci: Update npm-publish workflow for 1st party actions, permissions and node Jul 15, 2026

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/npm-publish.yml Outdated
Comment thread .github/workflows/npm-publish.yml
@damyanpetev

Copy link
Copy Markdown
Member

And this ended up with no changes left it seems, perhaps the new new thing Copilot noted last?

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment on lines 46 to +47
- name: Publish packages
# use npm run as yarn run changes the registry and publishes to https://registry.yarnpkg.com
run: npm run deploy ${NPM_TAG}
run: npm publish --tag ${NPM_TAG}
@turbobobbytraykov

Copy link
Copy Markdown
Contributor Author

These changes are irrelevant due to the current state of the branch - it already contains all the relevant changes. Closing this PR.

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.

5 participants