Skip to content

Commit 9598295

Browse files
author
Emil Kais
committed
Match example for .yaml
1 parent 863af76 commit 9598295

File tree

1 file changed

+16
-22
lines changed

1 file changed

+16
-22
lines changed

.github/workflows/publish.yaml

+16-22
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,23 @@ on:
33
release:
44
types: [created]
55
jobs:
6-
build-and-publish:
6+
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- name: Checkout repository
10-
uses: actions/checkout@v4
11-
- name: Setup Node.js
12-
uses: actions/setup-node@v4
9+
- uses: actions/checkout@v4
10+
- uses: actions/setup-node@v4
1311
with:
14-
node-version: '20'
15-
registry-url: 'https://registry.npmjs.org'
12+
node-version: 20
13+
- run: npm ci
14+
- run: npm run build
15+
- run: npm test
1616

17-
- name: Install dependencies
18-
run: npm ci
19-
20-
- name: Build
21-
run: npm run build
22-
23-
- name: Run tests
24-
run: npm test
25-
26-
- name: "Publish n8n-nodes-markitdown package"
27-
uses: bitovi/github-actions-npm-publish:v1.0.0
28-
with:
29-
update_type: 'patch'
30-
npm_token: ${{ secrets.NPM_TOKEN }}
31-
publish: true
17+
publish-npm:
18+
needs: build
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: bitovi/github-actions-npm-publish:v1.0.0
22+
with:
23+
update_type: 'patch'
24+
npm_token: ${{ secrets.NPM_TOKEN }}
25+
publish: true

0 commit comments

Comments
 (0)