Skip to content

Commit 7c9a60b

Browse files
committed
Added actions
1 parent c61ccb5 commit 7c9a60b

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed

.github/workflows/publish.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: publish
2+
3+
on:
4+
push:
5+
tags: [ "v[0-9]+.[0-9]+.[0-9]+" ]
6+
7+
jobs:
8+
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: "20"
17+
cache: npm
18+
registry-url: "https://registry.npmjs.org"
19+
20+
- run: npm ci
21+
- run: npm run build
22+
- run: npm test
23+
24+
- uses: actions/upload-artifact@v4
25+
with:
26+
name: react-executor-devtools-${{ github.ref_name }}
27+
path: build
28+
29+
- name: Create release draft
30+
run: gh release create ${{ github.ref_name }} --generate-notes --draft
31+
env:
32+
GH_TOKEN: ${{ github.token }}

.github/workflows/test.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
paths-ignore:
7+
- 'README.md'
8+
9+
pull_request:
10+
branches: [ master ]
11+
paths-ignore:
12+
- 'README.md'
13+
14+
jobs:
15+
16+
test:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: "20"
23+
cache: npm
24+
- run: npm ci
25+
- run: npm run build
26+
- run: npm test

0 commit comments

Comments
 (0)