-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add tsup update github actions update npm packages fix eslint config
- Loading branch information
Showing
15 changed files
with
2,168 additions
and
527 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: [created] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
publish-npm: | ||
runs-on: ubuntu-latest | ||
name: "Publish package to npm registry" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: "Checkout repo" | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 22 | ||
registry-url: https://registry.npmjs.org/ | ||
name: "Install Node.js" | ||
- run: npm ci | ||
name: "Install dependencies" | ||
- run: npm test | ||
name: "Run tests" | ||
- run: npm run build | ||
name: "Build distribution bundle" | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.npm_token}} | ||
name: "Publish to registry" |
This file was deleted.
Oops, something went wrong.
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,26 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches: ["**"] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test-commit: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node: [18, 20, 22] | ||
name: Test repo on Node.js ${{ matrix.node }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: "Checkout repo" | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
registry-url: https://registry.npmjs.org/ | ||
name: "Install Node.js" | ||
- run: npm ci | ||
name: "Install dependencies" | ||
- run: npm test | ||
name: "Run tests" |
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,8 +1,12 @@ | ||
import cinnabarPlugin from "@cinnabar-forge/eslint-plugin"; | ||
|
||
export default [ | ||
...cinnabarPlugin.default, | ||
{ | ||
ignores: ["src/cinnabar.js", "build/*", "dist/*", "bin/*"], | ||
}, | ||
...cinnabarPlugin.default.map((config) => ({ | ||
...config, | ||
files: ["src/**/*.ts"], | ||
rules: { | ||
...config.rules, | ||
"security/detect-object-injection": "off", | ||
}, | ||
})), | ||
]; |
Oops, something went wrong.