Skip to content

Commit

Permalink
chore: release stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
zaida04 committed Mar 21, 2024
1 parent f88d625 commit 1a376e0
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,17 @@ jobs:
message: "chore: release"
push: true

- name: Release
run: bun recursive publish
- name: Recursive Release
run: turbo run release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

docker:
runs-on: ubuntu-latest
strategy:
matrix:
service-name: [proxy]
# service-name: [proxy]
service-name: []
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
1 change: 1 addition & 0 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"build": "tsc && gen-esm-wrapper . ./dist/index.mjs",
"build:typecheck": "tsc --noEmit",
"prepublishOnly": "rimraf dist/ && rimraf types/ && bun run build",
"release": "changeset publish",
"router:preserve": "ts-node scripts/pre-gen-router.ts",
"router:restore": "ts-node scripts/post-gen-router.ts",
"generate:ws": "openapi-typescript \"https://www.guilded.gg/api/v1/socket-open-api-schema.json\" --output lib/generated/api-typings/v1/ws.ts",
Expand Down
3 changes: 2 additions & 1 deletion packages/create-guilded-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"scripts": {
"build": "tsc",
"build:typecheck": "tsc --noEmit",
"prepublishOnly": "rimraf dist/ && rimraf types/ && bun run build"
"prepublishOnly": "rimraf dist/ && rimraf types/ && bun run build",
"release": "changeset publish"
},
"devDependencies": {
"@types/node": "18.16.12",
Expand Down
3 changes: 2 additions & 1 deletion packages/gil/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"test": "ts-node test/index.ts",
"build": "tsc && gen-esm-wrapper . ./dist/index.mjs",
"build:typecheck": "tsc --noEmit",
"prepublishOnly": "rimraf dist/ && rimraf types/ && bun run build"
"prepublishOnly": "rimraf dist/ && rimraf types/ && bun run build",
"release": "changeset publish"
},
"devDependencies": {
"dotenv": "^16.0.3",
Expand Down
3 changes: 2 additions & 1 deletion packages/guilded.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"scripts": {
"build": "tsc && gen-esm-wrapper . ./dist/index.mjs",
"build:typecheck": "tsc --noEmit",
"prepublishOnly": "rimraf dist/ && rimraf types/ && bun run build"
"prepublishOnly": "rimraf dist/ && rimraf types/ && bun run build",
"release": "changeset publish"
},
"devDependencies": {
"@types/node": "18.16.12",
Expand Down
2 changes: 1 addition & 1 deletion services/proxy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ RUN apk add --update \
&& apk add --no-cache --virtual .build-deps curl \
&& corepack enable && corepack prepare [email protected] --activate

COPY tsconfig.json package.json pnpm-lock.yaml pnpm-workspace.yaml ./
COPY tsconfig.json package.json bun.lockb ./
COPY ./packages/api/. ./packages/api/

COPY ./services/proxy/package.json ./services/proxy/tsconfig.json ./services/proxy/
Expand Down
6 changes: 6 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@
"^prepublishOnly"
],
"cache": false
},
"release": {
"dependsOn": [
"^release"
],
"cache": false
}
}
}

0 comments on commit 1a376e0

Please sign in to comment.