Skip to content

Commit fb8f383

Browse files
sonicoder86ngabor84
andcommitted
fix(release): use Github Actions
EME-5173 Co-authored-by: Gabor Nemeth <gabor.nemeth@emarsys.com>
1 parent beddf38 commit fb8f383

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/main.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
env:
8+
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}
9+
GH_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GH_TOKEN }}
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Node version
18+
id: engines
19+
run: echo "##[set-output name=NODE_VERSION;]$(cat .nvmrc)"
20+
- name: Use Node.js ${{ steps.engines.outputs.NODE_VERSION }}
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ steps.engines.outputs.NODE_VERSION }}
24+
- name: Install
25+
run: npm install
26+
- name: Lint
27+
run: npm run lint
28+
- name: Test
29+
run: npm run test
30+
- name: Build
31+
run: npm run build
32+
- name: Release
33+
run: npm run semantic-release

0 commit comments

Comments
 (0)