Closed jacobdotcosta closed 8 months ago
I think that we need also a step to verify if the package(s) that we would like to publish part of a release do not yet exist on npmjs.org !
Do you mean check if packages with the same release number already exist on npmjs.org
? There shouldn't be as this should be the only way of publishing the artifacts.
Do you mean check if packages with the same release number already exist on
npmjs.org
? There shouldn't be as this should be the only way of publishing the artifacts.
Yes or locally. Why ? npmjs.org don't support anymore that we override a package already pushed as that was possible in the past
I have it but I'm not sure where to place the validation. Should it be placed on the first workflow to prevent the creation of the version PR tag?
I have it but I'm not sure where to place the validation. Should it be placed on the first workflow to prevent the creation of the version PR tag?
That makes sense
Can you add a section to the README to explain what folks should do to trigger a new release ? @jacobdotcosta
Added a RELEASE.md
file documenting the release process.
The 3 git workflows include the following actions:
- name: Build all plugins uses: ./.github/actions/build with: node_version: ${{ matrix.node-version }} - name: Verify dist files generated (*.d.ts) run: | ls -la plugins/*/dist
I think that only the flow
tag-for-release.yaml
should include them as it makes no sense to tag/release and push to npmjs.org if we cannot compile the typescript files, generate the javascript files
I agree that the release workflow won't need this but are you sure the Publish workflow also doesn't need it? Won't it need the project to have been built in order to publish it to npmjs.org?
I agree that the release workflow won't need this but are you sure the Publish workflow also doesn't need it? Won't it need the project to have been built in order to publish it to npmjs.org?
As we don't save the artifacts built (= js files), then such a build is needed when we push on npmjs.org. Nevertheless, in order to tag the git repo, we should also do a build
to be sure that project is in good health ;-)
I agree that the release workflow won't need this but are you sure the Publish workflow also doesn't need it? Won't it need the project to have been built in order to publish it to npmjs.org?
As we don't save the artifacts built (= js files), then such a build is needed when we push on npmjs.org. Nevertheless, in order to tag the git repo, we should also do a
build
to be sure that project is in good health ;-)
Great, so I'll leave this as is.
Great, so I'll leave this as is.
No. Here is what we should do concerning the existing jobs @jacobdotcosta
release
to tag-and-create-release
Made several improvements to the docs. Could you take another look @cmoulliard ?
Provides 2 workflows:
tag-for-release.yaml
: Manual workflow that creates a PR for release, with updated version numbers.release.yaml
: Create release for tag. Triggered automatically from merged Release PR.Closes #49