From fc0ea712bbed302d66942d46d087134c1077e24d Mon Sep 17 00:00:00 2001 From: tiavina-mika Date: Thu, 13 Jun 2024 23:20:45 +0300 Subject: [PATCH] fix: workflow --- .github/workflows/publish.yml | 6 ++++++ .github/workflows/release.yml | 26 +------------------------- 2 files changed, 7 insertions(+), 25 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7199933..6e24f53 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -38,6 +38,12 @@ jobs: node-version: '20.x' registry-url: 'https://registry.npmjs.org' + - name: Install dependencies + run: yarn + + - name: Build + run: yarn build + # npm publish - name: Publish package on NPM 📦 # if using yarn v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5f6a32d..46da232 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,33 +19,8 @@ env: APP_NAME: tiptap-parser jobs: - build: - name: Build - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v4 - - # need this for using yarn v4 - - name: Enable Corepack - run: corepack enable - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - - - name: Install dependencies - run: yarn - - - name: Build - run: yarn build - changelog: name: Changelog - needs: - - build if: github.event_name != 'pull_request' runs-on: ubuntu-latest @@ -78,6 +53,7 @@ jobs: git-user-email: "github-actions[bot]@users.noreply.github.com" git-branch: ${{ env.PR_BRANCH }} skip-git-pull: true + skip-on-empty: false # this will update the version in package.json # and therefore the npm package version version-file: './package.json'