Skip to content

Add workflow#9

Merged
salvador-barboza merged 2 commits intomainfrom
add-workflow
May 6, 2025
Merged

Add workflow#9
salvador-barboza merged 2 commits intomainfrom
add-workflow

Conversation

@salvador-barboza
Copy link
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings May 6, 2025 01:02
@salvador-barboza salvador-barboza merged commit 0582a86 into main May 6, 2025
3 checks passed
@salvador-barboza salvador-barboza deleted the add-workflow branch May 6, 2025 01:02
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds a new GitHub Actions workflow to publish releases automatically on release creation or manual dispatch.

  • Defines Publish Release workflow triggered on release.created and workflow_dispatch
  • Sets up a build-and-publish job on ubuntu-latest with checkout and Node.js 20 configuration


on:
release:
types: [created]
Copy link

Copilot AI May 6, 2025

Choose a reason for hiding this comment

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

The release trigger with created fires on draft or prerelease creation; consider using published to run this workflow only when a release is finalized.

Suggested change
types: [created]
types: [published]

Copilot uses AI. Check for mistakes.
uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
Copy link

Copilot AI May 6, 2025

Choose a reason for hiding this comment

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

The job currently only checks out code and sets up Node.js; you need to add steps to install dependencies (e.g., npm install) and run npm publish (with appropriate authentication via a secret) to complete the publish process.

Suggested change
registry-url: 'https://registry.npmjs.org'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install
- name: Publish package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Copilot uses AI. Check for mistakes.
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.

2 participants