-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Igor Kowalski
committed
Aug 2, 2023
1 parent
a8bb48f
commit 1ccd598
Showing
10 changed files
with
466 additions
and
122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Check code | ||
|
||
on: [pull_request, push] | ||
|
||
jobs: | ||
test: | ||
name: Check code | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "14.x" | ||
registry-url: "https://registry.npmjs.org" | ||
|
||
- name: Install dependencies | ||
run: yarn --non-interactive --frozen-lockfile --ignore-scripts | ||
|
||
- name: lint:check | ||
run: yarn lint:check | ||
|
||
- name: types:check | ||
run: yarn types:check | ||
|
||
- name: format:check | ||
run: yarn format:check | ||
|
||
- name: test:check | ||
run: yarn test:check | ||
|
||
- name: build | ||
run: yarn build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Publish new version | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: "Choose version to bump" | ||
required: true | ||
default: "patch" | ||
type: choice | ||
options: | ||
- "patch" | ||
- "minor" | ||
- "major" | ||
|
||
jobs: | ||
publish: | ||
name: publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "14.x" | ||
registry-url: "https://registry.npmjs.org" | ||
|
||
- name: Config git | ||
run: | | ||
git config user.name github-actions | ||
git config user.email github-actions@github.com | ||
git config --global push.followTags true | ||
- name: Install dependencies | ||
run: yarn --non-interactive --frozen-lockfile --ignore-scripts | ||
|
||
- name: Build lib | ||
run: yarn build | ||
|
||
- name: Publish new version | ||
run: | | ||
npm version ${{ github.event.inputs.version }} | ||
npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
- name: Push to main | ||
run: git push |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
{ | ||
"tabWidth": 4, | ||
"endOfLine": "auto" | ||
"tabWidth": 4 | ||
} |
Oops, something went wrong.