test build

This commit is contained in:
Jacob Nguyen
2024-06-08 15:38:56 -05:00
parent b8475a7e65
commit 6227be632a
4 changed files with 7 additions and 3 deletions

View File

@@ -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}}

View File

@@ -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"

View File

@@ -6,7 +6,7 @@
"scripts": {
"build": "tsc",
"watch": "tsc --watch",
"test": "vitest"
"test": "vitest --run"
},
"dependencies": {
"shrimple-locales": "^0.2.1"

View File

@@ -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"
},