Skip to content
This repository was archived by the owner on Nov 18, 2025. It is now read-only.

Commit f50dc2a

Browse files
author
Antoine Mineau
committed
ci: setup GA
1 parent 752e21f commit f50dc2a

4 files changed

Lines changed: 49 additions & 67 deletions

File tree

.circleci/config.yml

Lines changed: 0 additions & 67 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
2+
name: Javascript Api Client
3+
4+
on:
5+
push:
6+
branches:
7+
- main
8+
- master
9+
10+
jobs:
11+
test:
12+
runs-on: self-hosted
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-node@v1
16+
with:
17+
node-version: '12'
18+
- name: Install dependencies
19+
run: npm install
20+
- name: Run test
21+
run: npm test
22+
23+
publish:
24+
runs-on: self-hosted
25+
needs: test
26+
if: contains('
27+
refs/heads/master
28+
refs/heads/main'
29+
, github.ref)
30+
steps:
31+
- uses: actions/checkout@v2
32+
- uses: actions/setup-node@v1
33+
with:
34+
node-version: '12'
35+
- uses: actions/setup-python@v2
36+
- name: Install dependencies
37+
run: npm install
38+
- name: Build
39+
run: npm run build
40+
- name: Release
41+
run: npx semantic-release -e ./config/release.config.js
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.REPOS_TOKEN }}
44+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

generate-package.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#! /bin/bash
22

3+
set -e
4+
35
GENERATOR=$1
46
if [ -z "$GENERATOR" ]; then
57
GENERATOR=openapi-generator.jar

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@
3838
"@babel/plugin-syntax-import-meta": "^7.0.0",
3939
"@babel/preset-env": "^7.0.0",
4040
"@babel/register": "^7.0.0",
41+
"@semantic-release/github": "^7.2.3",
42+
"@semantic-release/npm": "^7.1.3",
4143
"browserify": "^16.5.0",
44+
"conventional-changelog-eslint": "^3.0.9",
4245
"expect.js": "^0.3.1",
4346
"mocha": "^5.2.0",
4447
"sinon": "^7.2.0",

0 commit comments

Comments
 (0)