You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Until now this repo had no workflows and npm versions were published by hand (publish.sh).
Pipeline
build.yml: the TypeScript build, the unit tests and the live tests against staging run on Node 20, 22 and 24. They are aggregated into the required build check, and a 0.0.0-ci.{run}.g{sha} tarball is packed as an artifact. Actions are pinned to SHAs.
publish.yml: runs on a GitHub Release v{semver} published by tomasr78. It checks the publisher and the re-run actor, that the tag is SemVer, that the tag matches the checkout, that the version is on main, and that npm has never had that version. It then sets the version from the tag, builds, tests, and runs npm publish --provenance through npm Trusted Publishing (OIDC) from the npm environment (v* tags only).
Dist-tags keep today's behaviour: stable releases go to module, pre-releases to next, and latest stays on the non-module 1.0.8 (publish.sh said "Tag latest must be non module implementation"). RELEASING.md explains how to move latest deliberately.
Package
package.json: the version is now a 0.0.0-local placeholder (publish.yml sets the real one from the tag). Adds the build/test scripts and a types entry. prepublishOnly refuses a local publish. repository now points at convertapi-library-js, which npm provenance needs.
Tests (node:test): unit tests with a stubbed fetch, plus live tests (upload, convert, chaining, remote URL, invalid token) that are skipped when CONVERT_API_SECRET is not set. CI sets it from the CONVERTAPI_STAGING_TOKEN secret.
The README's remote-file example pointed at a 404 URL. It now uses https://cdn.convertapi.com/cara/testfiles/presentation.pptx.
RELEASING.md, CHANGELOG.md and Dependabot are added; package-lock.json is now committed.
No library code changes. The next release would be 1.1.10, published under the module dist-tag.
…lease
- build.yml: build + unit tests + live tests against staging on Node 20/22/24,
aggregated into the required `build` check; packs a 0.0.0-ci artifact.
- publish.yml: a GitHub Release v{semver} by tomasr78 publishes to npm with
provenance via Trusted Publishing from the `npm` environment. Stable versions
go to the `module` dist-tag; `latest` stays on the non-module 1.0.8.
- package.json: 0.0.0-local placeholder version, build/test scripts, local
publish refused, repository URL points at convertapi-library-js, types.
- Tests (node:test): stubbed-fetch unit tests and live tests that skip without
CONVERT_API_SECRET.
- RELEASING.md, CHANGELOG.md, Dependabot; publish.sh removed; lockfile committed.
- README: working remote-file example URL, links to the renamed repository.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cancel-in-progress: false protects the running job, but the default concurrency queue retains only one pending job. If release A is publishing while B waits, publishing release C cancels B, leaving B's GitHub Release unpublished on npm unless someone manually reruns it. Add queue: max to retain up to 100 pending release jobs while keeping publishing serialized (GitHub documentation).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves convertapi-js to the trunk-based release flow of https://github.com/ConvertAPI/convertapi-library-dotnet and https://github.com/ConvertAPI/convertapi-library-node (PR ConvertAPI/convertapi-library-node#96).
Until now this repo had no workflows and npm versions were published by hand (
publish.sh).Pipeline
build.yml: the TypeScript build, the unit tests and the live tests against staging run on Node 20, 22 and 24. They are aggregated into the requiredbuildcheck, and a0.0.0-ci.{run}.g{sha}tarball is packed as an artifact. Actions are pinned to SHAs.publish.yml: runs on a GitHub Releasev{semver}published by tomasr78. It checks the publisher and the re-run actor, that the tag is SemVer, that the tag matches the checkout, that the version is on main, and that npm has never had that version. It then sets the version from the tag, builds, tests, and runsnpm publish --provenancethrough npm Trusted Publishing (OIDC) from thenpmenvironment (v*tags only).module, pre-releases tonext, andlateststays on the non-module 1.0.8 (publish.shsaid "Tag latest must be non module implementation"). RELEASING.md explains how to movelatestdeliberately.Package
package.json: the version is now a0.0.0-localplaceholder (publish.yml sets the real one from the tag). Adds thebuild/testscripts and atypesentry.prepublishOnlyrefuses a local publish.repositorynow points at convertapi-library-js, which npm provenance needs.node:test): unit tests with a stubbedfetch, plus live tests (upload, convert, chaining, remote URL, invalid token) that are skipped whenCONVERT_API_SECRETis not set. CI sets it from theCONVERTAPI_STAGING_TOKENsecret.https://cdn.convertapi.com/cara/testfiles/presentation.pptx.package-lock.jsonis now committed.No library code changes. The next release would be 1.1.10, published under the
moduledist-tag.🤖 Generated with Claude Code