-
Notifications
You must be signed in to change notification settings - Fork 5
build: setup CI/CD for package publishing #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Rename package with pipedream org scope
fixes: ``` getCacheEntry failed: Cache service responded with 503 ```
There was a problem hiding this 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' |
There was a problem hiding this comment.
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
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed in aa8827e
master
eslint-plugin-pipedream
to@pipedream/eslint-plugin-pipedream
to publish in org scopeactions/checkout
andactions/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>
.