-
Notifications
You must be signed in to change notification settings - Fork 0
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
Pulsar Automated Release #7
Comments
Since there's some interest around this repo now, I'll try to find some time to test this on my end as well, to get some of the kinks ironed out |
🤔 Considering that https://github.com/AtomLinter/linter-eslint-node is now archived. Can we point pulsar-edit ~ linter-eslint-node to this repo? Or does ppm support scoped packages? (I would make this @pulsar-linter/eslint) |
So we could go ahead and change where that package is pointing to. Since the backend does not currently support any scoped packages. Really the hardest part would be figuring a secure way to do so. |
Just looking at semantic-release-ppm src/publish.js:31 I assume we could use release-please, then on gh tag an action can just do something like: curl -X POST -H "Authorization: $PULSAR_TOKEN "https://api.pulsar-edit.dev/api/packages/$PULSAR_NAME/versions" |
That very possibly could be the case. I'll be honest, testing more with my plugin gave me some issues, where the recommended code from Since really, under the new backend, very little needs to be done to publish a new release:
So I'll investigate |
release-please makes a PR for the release. Once that PR is merged it will:
From there we should just need to listen for the update and inform Pulsar of the change This means something like this should work: on:
push:
branches:
- main
- release-please
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- id: release-please
name: Make the Github Release and Tag
uses: GoogleCloudPlatform/release-please-action@v3
with:
release-type: node
- if: ${{ steps.release.outputs.release_created }}
name: Inform Pulsar of the Release
uses: actions/github-script@v6
env:
PULSAR_NAME: linter-eslint-node
PULSAR_TOKEN: ${{ secrets.PULSAR_TOKEN }}
with:
script: |
const { PULSAR_NAME, PULSAR_TOKEN } = process.env;
await fetch(
`https://api.pulsar-edit.dev/api/packages/${PULSAR_NAME}/versions`,
{
method: 'post',
headers: { 'Authorization': PULSAR_TOKEN },
},
); |
Original issue: AtomLinter/linter-eslint-node#43
We need to automate the publishing of releases to ppm. @confused-Techie made semantic-release-ppm.
We should look into using that.
The text was updated successfully, but these errors were encountered: