Skip to content

Commit

Permalink
fix: workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tiavina-mika committed Jun 13, 2024
1 parent 460f08d commit fc0ea71
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 25 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
26 changes: 1 addition & 25 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit fc0ea71

Please sign in to comment.