diff --git a/.github/workflows/manual-release.yml b/.github/workflows/manual-release.yml new file mode 100644 index 0000000..a63aa59 --- /dev/null +++ b/.github/workflows/manual-release.yml @@ -0,0 +1,43 @@ +name: Manual Release + +on: + workflow_dispatch: + inputs: + version: + description: 'Version to release (e.g., 0.4.1, 1.0.0)' + required: true + type: string + +permissions: + contents: write + id-token: write # required for npm trusted publishing + +jobs: + manual-release: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - uses: pnpm/action-setup@v4 + with: + version: 9 + + - uses: actions/setup-node@v5 + with: + node-version: 20 + registry-url: 'https://registry.npmjs.org' + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Update version in package.json + run: npm version ${{ inputs.version }} --no-git-tag-version + + - name: Build + run: pnpm build + + - name: Publish to npm (trusted publishing) + run: npm publish --access public --provenance diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fc4d31b..46f4f35 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,7 +27,6 @@ jobs: with: version: 9 - # 🔥 MUST use v5 to get npm 11.6+ which fixes the provenance/404 issue - uses: actions/setup-node@v5 if: ${{ steps.release.outputs.release_created }} with: @@ -42,7 +41,7 @@ jobs: if: ${{ steps.release.outputs.release_created }} run: pnpm build - # 🔥 Use npm for publish (pnpm cannot handle trusted publishing reliably) + # Use npm for publish (pnpm cannot handle trusted publishing reliably) - name: Publish to npm (trusted publishing) if: ${{ steps.release.outputs.release_created }} run: npm publish --access public --provenance diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 8dc5eab..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,22 +0,0 @@ -# Changelog - -## [0.4.0](https://github.com/supabase/iceberg-js/compare/iceberg-js-v0.3.0...iceberg-js-v0.4.0) (2025-11-20) - - -### Features - -* release ([#4](https://github.com/supabase/iceberg-js/issues/4)) ([8b0dfbc](https://github.com/supabase/iceberg-js/commit/8b0dfbc711e4db4a4c311ec5f3c4532bd808d1e3)) - -## [0.3.0](https://github.com/supabase/iceberg-js/compare/iceberg-js-v0.2.0...iceberg-js-v0.3.0) (2025-11-20) - - -### Features - -* accessDelegation and codeowners ([94c65c5](https://github.com/supabase/iceberg-js/commit/94c65c503949f67d03fb7d5fe1cafd90d2196fcd)) - -## [0.2.0](https://github.com/supabase/iceberg-js/compare/iceberg-js-v0.1.0...iceberg-js-v0.2.0) (2025-11-20) - - -### Features - -* accessDelegation and codeowners ([94c65c5](https://github.com/supabase/iceberg-js/commit/94c65c503949f67d03fb7d5fe1cafd90d2196fcd))