From 2c7ca4dff3351b614e5529c3089933358063097d Mon Sep 17 00:00:00 2001 From: Matt Kane Date: Sat, 26 Oct 2024 18:42:54 +0100 Subject: [PATCH] fix: fix publishing --- .github/workflows/npm-publish.yml | 5 ----- .github/workflows/release-please.yml | 4 +--- release-please-config.json | 14 ++++++++++++++ 3 files changed, 15 insertions(+), 8 deletions(-) create mode 100644 release-please-config.json diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index bd79573..f62c9b6 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -34,10 +34,5 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: cd npm && npm publish --provenance --access public - - name: Update version in deno.json - run: | - VERSION=$(cat version.txt) && jq --arg v "$VERSION" '.version = $v' deno.json > deno.json.tmp - mv deno.json.tmp deno.json - deno fmt deno.json - name: Publish to JSR run: npx jsr publish --allow-dirty diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml index f7f3ecb..fcbe2ed 100644 --- a/.github/workflows/release-please.yml +++ b/.github/workflows/release-please.yml @@ -14,9 +14,7 @@ jobs: with: private-key: ${{ secrets.APP_PRIVATE_KEY }} app-id: ${{ secrets.APP_ID }} - - uses: google-github-actions/release-please-action@v3 + - uses: googleapis/release-please-action@v4 with: release-type: simple - package-name: "unpic" - ssh-key: "${{ secrets.COMMIT_KEY }}" token: ${{ steps.get-token.outputs.token }} diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000..5c6f910 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,14 @@ +{ + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", + "packages": { + ".": { + "extra-files": [ + { + "type": "json", + "path": "deno.json", + "jsonpath": "$.version" + } + ] + } + } +}