Skip to content

Conversation

js07
Copy link
Contributor

@js07 js07 commented Jun 25, 2025

  • Creates GitHub workflow to publish the package to npm on push to master
  • Renames package from eslint-plugin-pipedream to @pipedream/eslint-plugin-pipedream to publish in org scope
  • Update actions/checkout and actions/setup-node to v4 in PR check WF to fix: getCacheEntry failed: Cache service responded with 503

For reference, the ESLint docs suggest naming scoped packages @<scope>/eslint-plugin-<plugin-name>.

js07 added 3 commits June 25, 2025 14:55
Rename package with pipedream org scope
fixes:
```
getCacheEntry failed: Cache service responded with 503
```
@js07 js07 marked this pull request as ready for review June 25, 2025 19:11
@js07 js07 requested a review from Copilot June 25, 2025 19:18
Copy link

@Copilot 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

This PR configures CI/CD for npm publishing and scopes the ESLint plugin package under the Pipedream org.

  • Renames the package to @pipedream/eslint-plugin-pipedream
  • Updates install instructions in README
  • Upgrades workflow actions and adds a publish-to-npm workflow

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

File Description
package.json Renamed package to scoped name
README.md Updated install command to use the new package scope
.github/workflows/pull-request-checks.yaml Bumped actions/checkout and setup-node to v4
.github/workflows/publish-package.yaml Added workflow to publish package on push to master branch
Comments suppressed due to low confidence (4)

.github/workflows/publish-package.yaml:5

  • The workflow is triggered on push to 'master', but the default branch is 'main'. Update this to 'main' so the publish step actually runs.
      - master

.github/workflows/publish-package.yaml:22

  • The conditional checks for 'refs/heads/master' but the repo uses 'main' as the default branch. Change this to 'refs/heads/main'.
        if: github.ref == 'refs/heads/master'

.github/workflows/publish-package.yaml:16

  • [nitpick] Node.js 14 is no longer maintained; consider upgrading to a current LTS (e.g., 18.x or 20.x) to benefit from security fixes and newer language features.
          node-version: '14.x'

.github/workflows/pull-request-checks.yaml:18

  • [nitpick] This workflow also pins Node.js to 14.x, which is EOL. Upgrading to a supported LTS version (18.x or newer) will help ensure compatibility and security.
        node-version: 14.x

- run: npm ci
- run: npm test
- name: npm publish
if: github.ref == 'refs/heads/master'
Copy link

Choose a reason for hiding this comment

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

This might be redundant since we're running this workflow only when there's a push to master.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed in aa8827e

@js07 js07 merged commit 3fa0524 into master Jun 25, 2025
1 check passed
@js07 js07 deleted the build/create-publish-package-workflow branch June 25, 2025 19:50
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