Skip to content

Commit

Permalink
feat: use doogu
Browse files Browse the repository at this point in the history
  • Loading branch information
bent10 committed May 5, 2022
1 parent cdd7baf commit 735440a
Show file tree
Hide file tree
Showing 9 changed files with 1,170 additions and 218 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Release
on:
repository_dispatch:
# curl -v -H "Accept: application/vnd.github.everest-preview+json" -H "Authorization: token ${GH_TOKEN}" https://api.github.com/repos/bent10/find-similar/dispatches -d '{ "event_type": "semantic-release" }'
# curl -v -H "Accept: application/vnd.github.everest-preview+json" -H "Authorization: token ${GH_TOKEN}"
# https://api.github.com/repos/bent10/find-similar/dispatches -d '{ "event_type": "semantic-release" }'
types: [semantic-release]
push:
branches:
Expand All @@ -16,25 +17,21 @@ jobs:
release:
name: Releasing
runs-on: ubuntu-latest

steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3

# https://github.com/actions/setup-node
- uses: actions/setup-node@v3

- run: npm install
with:
node-version: 14.17
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npm run test
- run: npm test

- name: Installing release dependencies
run: |
npm i -g semantic-release
npm i -g @semantic-release/changelog
npm i -g @semantic-release/git
- name: Semantic release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/validate-windows.yml

This file was deleted.

31 changes: 16 additions & 15 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
name: Validate packages

name: Validation
on:
pull_request:
types:
Expand All @@ -12,23 +11,25 @@ on:
- '!main'

jobs:
release:
runs-on: ubuntu-latest

test:
name: Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
node: ['16', '14', '12']

name: Node v${{ matrix.node }}

node-version:
- 16
- 14
- 12
os:
- ubuntu-latest
- windows-latest
steps:
# https://github.com/actions/checkout
- uses: actions/checkout@v3

# https://github.com/actions/setup-node
- uses: actions/setup-node@v3

- run: npm install
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run lint
- run: npm run build
- run: npm run test
- run: npm test
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
**/coverage
**/dist
coverage
dist
node_modules
65 changes: 0 additions & 65 deletions dist/index.d.ts

This file was deleted.

33 changes: 0 additions & 33 deletions dist/index.js

This file was deleted.

0 comments on commit 735440a

Please sign in to comment.