From fcddb653b90f5eb8f76d26d116b771536a59b996 Mon Sep 17 00:00:00 2001 From: Nick the Sick Date: Fri, 5 Jul 2024 18:29:25 +0200 Subject: [PATCH] fix: get packaging going --- .github/workflows/release.yml | 25 ++++++++++++++++++------- bun.lockb | Bin 98286 -> 98286 bytes package.json | 4 +++- 3 files changed, 21 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6fd4605..915367d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,14 @@ on: branches: - main -concurrency: ${{ github.workflow }}-${{ github.ref }} +permissions: + id-token: write + contents: write + pull-requests: write + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true jobs: release: @@ -20,17 +27,21 @@ jobs: with: bun-version: latest + - name: Setup Node 20 + uses: actions/setup-node@v4 + with: + node-version: "20" + registry-url: "https://registry.npmjs.org/" + - name: Install Dependencies - run: bun i + run: bun i && bun run build - name: Create Release Pull Request or Publish to npm id: changesets uses: changesets/action@v1 - with: - publish: bun run release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - name: Send release notification if: steps.changesets.outputs.published == 'true' @@ -39,7 +50,7 @@ jobs: with: payload: | { - "message": "[Tiptap Editor Release]: New Tiptap Editor version has been released to NPM." + "message": "[Draftjs-to-Tiptap Release]: New draftjs-to-tiptap version has been released to NPM." } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} @@ -51,7 +62,7 @@ jobs: with: payload: | { - "message": "[Tiptap Editor Release]: There was an issue publishing a new version. You can find the logs here: https://github.com/ueberdosis/tiptap/actions/runs/${{ github.run_id }}" + "message": "[Draftjs-to-Tiptap Release]: There was an issue publishing a new version. You can find the logs here: https://github.com/ueberdosis/tiptap/actions/runs/${{ github.run_id }}" } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} diff --git a/bun.lockb b/bun.lockb index f9283e6308275d49d91bc7dd4c2b1cec41ef6c32..38b4ca9044523eaa5f8bf478983790556916e4d3 100755 GIT binary patch delta 26 icmaF&pY`2;)`l&NtGPHB