This commit is contained in:
Philipp Kühn
2020-11-18 11:38:03 +01:00
2 changed files with 20 additions and 10 deletions

View File

@@ -45,17 +45,28 @@ jobs:
if: steps.cache.outputs.cache-hit != 'true' if: steps.cache.outputs.cache-hit != 'true'
run: yarn install run: yarn install
- name: Fix code style linting errors
id: lint-fix
run: yarn lint:fix
continue-on-error: true
- name: Commit fixed linting errors
id: commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "ci: fix code style linting errors"
- name: Lint code - name: Lint code
id: lint id: lint
run: yarn lint run: yarn lint
- name: Send Slack notifications - name: Send Slack notifications
uses: act10ns/slack@v1 uses: act10ns/slack@v1
if: failure()
with: with:
status: ${{ job.status }} status: ${{ job.status }}
steps: ${{ toJson(steps) }} steps: ${{ toJson(steps) }}
channel: '#tiptap-notifications' channel: '#tiptap-notifications'
if: failure()
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -104,11 +115,11 @@ jobs:
- name: Send Slack notifications - name: Send Slack notifications
uses: act10ns/slack@v1 uses: act10ns/slack@v1
if: failure()
with: with:
status: ${{ job.status }} status: ${{ job.status }}
steps: ${{ toJson(steps) }} steps: ${{ toJson(steps) }}
channel: '#tiptap-notifications' channel: '#tiptap-notifications'
if: failure()
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@@ -148,13 +159,11 @@ jobs:
- name: Try to build the packages - name: Try to build the packages
id: build-packages id: build-packages
run: yarn build:ci run: yarn build:ci
env:
NODE_OPTIONS: --max_old_space_size=8192
- name: Send Slack notifications - name: Send Slack notifications
uses: act10ns/slack@v1 uses: act10ns/slack@v1
if: failure()
with: with:
status: ${{ job.status }} status: ${{ job.status }}
steps: ${{ toJson(steps) }} steps: ${{ toJson(steps) }}
channel: '#tiptap-notifications' channel: '#tiptap-notifications'
if: failure()

View File

@@ -12,14 +12,15 @@
], ],
"scripts": { "scripts": {
"start": "yarn --cwd ./docs start", "start": "yarn --cwd ./docs start",
"build:docs": "yarn --cwd ./docs build",
"build:packages": "yarn clean:packages && node --max-old-space-size=8192 node_modules/.bin/rollup -c",
"build:ci": "yarn clean:packages && rollup -c --ci",
"clean:packages": "rm -rf ./packages/*/dist",
"release": "yarn lint && yarn test && yarn build:packages && lerna publish",
"lint": "eslint --quiet --no-error-on-unmatched-pattern ./", "lint": "eslint --quiet --no-error-on-unmatched-pattern ./",
"lint:fix": "eslint --fix --quiet --no-error-on-unmatched-pattern ./",
"test:open": "cypress open --project tests", "test:open": "cypress open --project tests",
"test": "cypress run --project tests", "test": "cypress run --project tests",
"build:docs": "yarn --cwd ./docs build",
"build:ci": "yarn clean:packages && for dir in packages/*; do package=${dir#'packages/'}; rollup -c --ci --scope @tiptap/$package; done",
"build:packages": "yarn clean:packages && for dir in packages/*; do package=${dir#'packages/'}; rollup -c --scope @tiptap/$package; done",
"release": "yarn lint && yarn test && yarn build:packages && lerna publish",
"clean:packages": "rm -rf ./packages/*/dist",
"reset": "yarn clean:packages && rm -rf ./**/.cache && rm -rf ./**/node_modules && rm -rf ./yarn.lock && yarn install" "reset": "yarn clean:packages && rm -rf ./**/.cache && rm -rf ./**/node_modules && rm -rf ./yarn.lock && yarn install"
}, },
"devDependencies": { "devDependencies": {