Skip to content

Commit f6005e5

Browse files
authored
Add CI/CD workflow for json-schema-editor
1 parent 084a3cd commit f6005e5

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI/CD for json-schema-editor
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout Code
13+
uses: actions/checkout@v4
14+
15+
- name: Install Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: 20.x
19+
registry-url: "https://registry.npmjs.org"
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Build
25+
run: npm run build
26+
27+
- name: Check version and publish
28+
uses: JS-DevTools/npm-publish@v3
29+
with:
30+
token: ${{ secrets.NPM_TOKEN }}
31+
access: public

0 commit comments

Comments
 (0)