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
34 changes: 17 additions & 17 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: Publish NPM Package

on:
push:
tags:
- '*'
push:
tags:
- '*'

jobs:
package:
runs-on: ubuntu-latest
name: Publish NPM Package
package:
runs-on: ubuntu-latest
name: Publish NPM Package

steps:
- name: Cloning repo
uses: actions/checkout@v3
steps:
- name: Cloning repo
uses: actions/checkout@v3

- uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- uses: actions/setup-node@v4
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'

- run: npm ci
- run: npm run deploy
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm ci
- run: npm run deploy
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
66 changes: 33 additions & 33 deletions .github/workflows/pull_request.yaml
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
name: Unit/Integration Tests

on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
push:
branches:
- main
jobs:
build-and-test:
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: '${{ matrix.node-version }}'
- name: cache node modules
uses: actions/cache@v4
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: npm-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
npm-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
npm-
- run: npm ci
- run: npm test
env:
CI: true
build-and-test:
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/setup-node@v4
with:
node-version: '${{ matrix.node-version }}'
- name: cache node modules
uses: actions/cache@v4
with:
path: ~/.npm # npm cache files are stored in `~/.npm` on Linux/macOS
key: npm-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
restore-keys: |
npm-${{ matrix.node-version }}-${{ hashFiles('package-lock.json') }}
npm-
- run: npm ci
- run: npm test
env:
CI: true
10 changes: 9 additions & 1 deletion .prettierrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,13 @@ module.exports = {
tabWidth: 4,
trailingComma: 'none',
useTabs: false,
arrowParens: 'avoid'
arrowParens: 'avoid',
overrides: [
{
files: ['*.yml', '*.yaml'],
options: {
tabWidth: 2
}
}
]
};