Skip to content

Commit

Permalink
Merge 41c0a3a into 1bbb677
Browse files Browse the repository at this point in the history
  • Loading branch information
a-ryazanov committed Jul 11, 2023
2 parents 1bbb677 + 41c0a3a commit ded6d09
Show file tree
Hide file tree
Showing 10 changed files with 12,193 additions and 241 deletions.
37 changes: 21 additions & 16 deletions .github/workflows/build.yml → .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: CI
name: pull-request-ci

run-name: Run CI for ${{ github.head_ref }}

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
branches:
- master

jobs:
build:
run:
runs-on: ubuntu-latest

strategy:
Expand All @@ -18,30 +17,36 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
run: npm install
- run: npm run build
- run: npm run test:ci
run: npm ci

- name: Build
run: npm run build

- name: Test
run: npm run test:ci

- name: Coveralls GitHub Action
- name: Coveralls
uses: coverallsapp/github-action@master
env:
COVERALLS_FLAG_NAME: run-${{ matrix.node-version }}
COVERALLS_FLAG_NAME: run-${{ matrix.node }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel: true

finish:
needs: build
coveralls-finalize:
needs: run
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
- name: Coveralls finalize
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: release

on:
push:
branches:
- master

jobs:
release:
if: "!contains(github.event.head_commit.message, 'chore(release)')"

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

- name: Release
run: npm run release
env:
NODE_AUTH_TOKEN: ${{ secrets.TINKOFF_NPM_AUTH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

14 changes: 14 additions & 0 deletions .release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"git": {
"commitMessage": "chore(release): version ${version}"
},
"github": {
"release": true
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": "conventionalcommits",
"infile": "CHANGELOG.md"
}
}
}
Loading

0 comments on commit ded6d09

Please sign in to comment.