Skip to content

Commit

Permalink
Merge pull request #29 from shiftcode/#28-maintenance
Browse files Browse the repository at this point in the history
Maintenance
  • Loading branch information
michaelwittwer authored Jul 13, 2024
2 parents 9f34eab + 61f6f01 commit a0a6638
Show file tree
Hide file tree
Showing 39 changed files with 13,438 additions and 8,368 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,40 +42,40 @@ jobs:
steps:
# checkout branch
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
# 0 indicates all history, because publish requires tag information
fetch-depth: 0
# we need privileged access to publish to protected branch
token: ${{ secrets.GH_TOKEN_PUBLIC_REPO }}
# setup node and yarn cache
- name: Setup Node and Yarn Cache
uses: actions/setup-node@v3
# setup node and dependency cache
- name: Setup Node and NPM Cache
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'yarn'
# yarn install
node-version-file: .nvmrc
cache: 'npm'
# install dependencies
- name: Install
run: HUSKY=0 yarn --frozen-lockfile
run: HUSKY=0 npm ci
# build lint plugins before linting
- name: Build lint plugins
run: yarn build:lint:ci
run: npm run build:lint:ci
# lint
- name: Lint
run: yarn lint:ci
run: npm run lint:ci
# test
- name: Test
run: yarn test:ci
run: npm run test:ci
# build
- name: Build
run: yarn build:ci
run: npm run build:ci
# publish
- name: Publish
run: |
npm config set //npm.pkg.github.com/:_authToken=$REGISTRY_TOKEN
git config user.email "[email protected]"
git config user.name "Github Actions"
yarn publish-libs
npm run publish-libs
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
REGISTRY_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,6 @@ lerna-debug.log
# System Files
.DS_Store
Thumbs.db

.nx/cache
.nx/workspace-data
3 changes: 0 additions & 3 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

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

npx lint-staged && npx lerna exec --concurrency 1 --stream lint-staged
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v20.11.1
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ Add a `.npmrc` file to the root of your project:
```

## Quick Start
* `yarn`
* `yarn build`
* `npm i`
* `npm run build`
* start developing


Expand Down
6 changes: 1 addition & 5 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
{
"packages": [
"packages/*"
],
"npmClient": "yarn",
"useWorkspaces": true,
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "independent",
"command": {
"version": {
Expand Down
37 changes: 20 additions & 17 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,27 @@
{
"tasksRunnerOptions": {
"default": {
"runner": "nx/tasks-runners/default",
"options": {
"cacheableOperations": [
"build:ci",
"build",
"lint:ci",
"lint:src",
"test:ci"
]
}
}
},
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"targetDefaults": {
"build": {
"dependsOn": ["^build"],
"outputs": [
"{projectRoot}/dist"
]
"outputs": ["{projectRoot}/dist"],
"cache": true
},
"build:ci": {
"cache": true
},
"lint:ci": {
"cache": true
},
"lint:src": {
"cache": true
},
"test:ci": {
"cache": true
}
},
"namedInputs": {
"default": ["{projectRoot}/**/*", "sharedGlobals"],
"sharedGlobals": [],
"production": ["default"]
}
}
Loading

0 comments on commit a0a6638

Please sign in to comment.