Skip to content

Commit

Permalink
Merge pull request #228 from TractorZoom/chore/updateAllDependencies
Browse files Browse the repository at this point in the history
chore: update all dependencies
  • Loading branch information
rossreicks authored Jan 17, 2024
2 parents adf4c8a + ea210a9 commit 6be11eb
Show file tree
Hide file tree
Showing 16 changed files with 5,831 additions and 13,807 deletions.
37 changes: 20 additions & 17 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,34 @@ jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- run: npm ci
- run: npm test
env:
CHANCE_SEED: ${{ secrets.CHANCE_SEED }}
node-version: 20
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn test

npm-publish:
needs: build-and-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm run build
- name: 'Semantic Release'
uses: cycjimmy/semantic-release-action@v3
id: semantic
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
branch: master
node-version: 20
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Configure Git User
run: |
git config --global user.email "dev-support@tractorzoom.com"
git config --global user.name "ci@$GITHUB_ACTOR"
- name: publish
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
HUSKY: 0
13 changes: 6 additions & 7 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
- run: npm ci
- run: npm test
env:
CHANCE_SEED: ${{ secrets.CHANCE_SEED }}
node-version: 20
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn test
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit "$1"
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

yarn lint-staged
8 changes: 0 additions & 8 deletions .huskyrc.js

This file was deleted.

8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"source.organizeImports.biome": "explicit",
"quickfix.biome": "explicit"
}
}
4 changes: 2 additions & 2 deletions __tests__/unit/chance-the-wrapper.spec.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import chance from '@src/index';

/* These tests rely on the seed being set to '12345' */

it('should have a custom chance.object() property', () => {
// given
process.env.CHANCE_SEED = '12345';

const chance = require('../../src/index').default;

const expectedObj = { key: 'f01cbd08d2bb5f6e32a03845251e87241696452b' };

// when
Expand Down
13 changes: 0 additions & 13 deletions babel.config.js

This file was deleted.

46 changes: 46 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"$schema": "https://biomejs.dev/schemas/1.4.1/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noExplicitAny": "warn"
},
"style": {
"noUselessElse": "off",
"noNonNullAssertion": "warn",
"noParameterAssign": "warn",
"useDefaultParameterLast": "warn"
},
"performance": {
"noDelete": "off",
"noAccumulatingSpread": "warn"
},
"complexity": {
"useOptionalChain": "warn",
"noForEach": "warn",
"noStaticOnlyClass": "warn"
},
"correctness": {
"noUnsafeOptionalChaining": "warn"
}
}
},
"formatter": {
"enabled": true,
"indentWidth": 4,
"indentStyle": "space",
"lineWidth": 120
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"jsxQuoteStyle": "single",
"trailingComma": "es5"
}
}
}
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,5 @@ module.exports = {
restoreMocks: true,
transform: {
'^.+\\.(ts|tsx)?$': 'ts-jest',
'^.+\\.(js|jsx)$': 'babel-jest',
},
};
Loading

0 comments on commit 6be11eb

Please sign in to comment.