Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# See https://git-scm.com/docs/gitattributes for more about git attribute files.

# Mark the yarn lockfile as having been generated.
yarn.lock linguist-generated
# Mark the lockfile as having been generated.
package-lock.json linguist-generated
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
* @chvp @robbevp
package.json @chvp
yarn.lock @chvp
package-lock.json @chvp
.github/* @chvp
90 changes: 45 additions & 45 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,63 +5,63 @@ on:
branches:
- main
tags:
- '*'
- "*"
pull_request:

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Node
uses: actions/[email protected]
with:
node-version: 'lts/*'
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: Lint
run: yarn run lint --no-fix --max-warnings 0 --format stylish
- uses: actions/[email protected]
- name: Set up Node
uses: actions/[email protected]
with:
node-version: "lts/*"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint -- --no-fix --max-warnings 0 --format stylish
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Node
uses: actions/[email protected]
with:
node-version: 'lts/*'
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: build
run: yarn build
- uses: actions/[email protected]
- name: Set up Node
uses: actions/[email protected]
with:
node-version: "lts/*"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: build
run: npm run build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Node
uses: actions/[email protected]
with:
node-version: 'lts/*'
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: test
run: yarn test
- uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }} # required
files: cobertura-coverage.xml
- uses: actions/[email protected]
- name: Set up Node
uses: actions/[email protected]
with:
node-version: "lts/*"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: test
run: npm run test
- uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }} # required
files: cobertura-coverage.xml
type-check:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Node
uses: actions/[email protected]
with:
node-version: 'lts/*'
cache: 'yarn'
- name: Install dependencies
run: yarn install
- name: type-check
run: yarn type-check
- uses: actions/[email protected]
- name: Set up Node
uses: actions/[email protected]
with:
node-version: "lts/*"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: type-check
run: npm run type-check
58 changes: 29 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release Package
on:
push:
tags:
- 'v*'
- "v*"

permissions:
id-token: write
Expand All @@ -13,31 +13,31 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Node
uses: actions/[email protected]
with:
node-version: 'lts/*'
cache: 'yarn'
registry-url: 'https://registry.npmjs.org'
- name: Update npm to latest version for OIDC support
run: npm install -g npm@latest
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
- name: Parse tag
id: parse_tag
run: "echo ${{ github.ref }} | sed 's#^refs/tags/#::set-output name=version::#'"
- name: Create release
id: create_release
uses: release-drafter/release-drafter@v7
with:
name: ${{ steps.parse_tag.outputs.version }}
tag: ${{ steps.parse_tag.outputs.version }}
version: ${{ steps.parse_tag.outputs.version }}
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to NPM
run: yarn publish
- uses: actions/[email protected]
- name: Set up Node
uses: actions/[email protected]
with:
node-version: "lts/*"
cache: "npm"
registry-url: "https://registry.npmjs.org"
- name: Update npm to latest version for OIDC support
run: npm install -g npm@latest
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Parse tag
id: parse_tag
run: "echo ${{ github.ref }} | sed 's#^refs/tags/#::set-output name=version::#'"
- name: Create release
id: create_release
uses: release-drafter/release-drafter@v7
with:
name: ${{ steps.parse_tag.outputs.version }}
tag: ${{ steps.parse_tag.outputs.version }}
version: ${{ steps.parse_tag.outputs.version }}
publish: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to NPM
run: npm publish
Loading