Skip to content

Commit ca590ec

Browse files
author
Steven Weingärtner
committed
chore: switch to github
1 parent 675c4ef commit ca590ec

19 files changed

Lines changed: 2366 additions & 1712 deletions

File tree

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
time: "04:00"
8+
open-pull-requests-limit: 10
9+
ignore:
10+
- dependency-name: y18n
11+
versions:
12+
- 4.0.2

.github/workflows/npmpublish.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Release and Publish Packages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- v*
9+
10+
jobs:
11+
test:
12+
name: Run unit tests
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Check out repository
16+
uses: actions/checkout@v2
17+
- name: Setup NodeJS
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: 18
21+
- name: Install node dependencies
22+
run: npm ci
23+
- name: Run code-style
24+
run: npm run check:code-style -ws
25+
- name: Run tests
26+
run: npm test -ws
27+
28+
release:
29+
name: Create release and publish
30+
needs: test
31+
if: github.repository == 'brainbits/node-logger' && github.ref_type == 'tag'
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Check out repository
35+
uses: actions/checkout@v3
36+
- name: Setup NodeJS
37+
uses: actions/setup-node@v3
38+
with:
39+
node-version: 18
40+
registry-url: https://registry.npmjs.org/
41+
- name: Install node dependencies
42+
run: npm ci
43+
- name: Build
44+
run: npm run build -ws
45+
- name: Release and publish using lerna with conventional commits
46+
env:
47+
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
48+
run: npx lerna publish from-package --yes

.gitlab-ci.yml

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

.npmrc

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

0 commit comments

Comments
 (0)