mirror of
https://github.com/sern-handler/tools
synced 2026-06-06 01:16:59 +00:00
test build
This commit is contained in:
4
.github/workflows/npm-publish.yml
vendored
4
.github/workflows/npm-publish.yml
vendored
@@ -28,10 +28,12 @@ jobs:
|
||||
- run: corepack enable
|
||||
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
|
||||
- run: yarn set version classic
|
||||
- run: yarn install --immutable
|
||||
working-directory: ./packages/${{ github.event.inputs.package }}
|
||||
- run: yarn build
|
||||
working-directory: ./packages/${{ github.event.inputs.package }}
|
||||
- run: yarn test
|
||||
working-directory: ./packages/${{ github.event.inputs.package }}
|
||||
- run: yarn install --immutable
|
||||
- run: yarn publish
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
"description": "Dependency Injection system",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
"test": "vitest"
|
||||
"test": "vitest --run",
|
||||
"build": "tsc"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vitest": "^1.0.0"
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"scripts": {
|
||||
"build": "tsc",
|
||||
"watch": "tsc --watch",
|
||||
"test": "vitest"
|
||||
"test": "vitest --run"
|
||||
},
|
||||
"dependencies": {
|
||||
"shrimple-locales": "^0.2.1"
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
"poster:debug": "npx squint compile",
|
||||
"poster:prod": "npx squint compile",
|
||||
"build": "npm run gen-discord-types && npx squint compile",
|
||||
"test": "exit 0",
|
||||
"gen-discord-types": "npx openapi-typescript https://raw.githubusercontent.com/discord/discord-api-spec/main/specs/openapi.json --output ./src/discord.d.ts",
|
||||
"repl": "npx squint repl"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user