Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
- development
- production
pull_request:
workflow_call:

jobs:
ci:
Expand Down
19 changes: 18 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ jobs:
uses: ./.github/workflows/ci.yml

publish:
needs: ci
runs-on: ubuntu-latest

steps:
Expand All @@ -26,9 +25,27 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Type check (server)
run: npm run test:ts:back

- name: Type check (admin)
run: npm run test:ts:front

- name: Build
run: npm run build

- name: Verify plugin
run: npm run verify

- name: Check version not already published
run: |
VERSION=$(node -p "require('./package.json').version")
if npm view strapi-plugin-form-builder-cms@$VERSION version 2>/dev/null; then
echo "Version $VERSION is already published on npm."
exit 1
fi
echo "Version $VERSION is ready to publish."

- name: Get package version
id: pkg
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
Expand Down
Loading