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 21646dc
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 45 deletions.
5 changes: 5 additions & 0 deletions .changeset/twelve-flowers-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"guilded.js": patch
---

Added 'reason' property to ban manager
80 changes: 40 additions & 40 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,50 +30,50 @@ jobs:
message: "chore: release"
push: true

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

docker:
runs-on: ubuntu-latest
strategy:
matrix:
service-name: [proxy]
steps:
- name: Checkout
uses: actions/checkout@v2
# docker:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# service-name: []
# steps:
# - name: Checkout
# uses: actions/checkout@v2

- name: Verify Changed files
uses: dorny/paths-filter@v2
id: verify-changed-files
with:
filters: |
service:
- 'services/${{ matrix.service-name }}/src/**'
- 'services/${{ matrix.service-name }}/package.json'
# - name: Verify Changed files
# uses: dorny/paths-filter@v2
# id: verify-changed-files
# with:
# filters: |
# service:
# - 'services/${{ matrix.service-name }}/src/**'
# - 'services/${{ matrix.service-name }}/package.json'

- name: Set up QEMU
if: steps.verify-changed-files.outputs.service == 'true'
uses: docker/setup-qemu-action@v2
# - name: Set up QEMU
# if: steps.verify-changed-files.outputs.service == 'true'
# uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
if: steps.verify-changed-files.outputs.service == 'true'
uses: docker/setup-buildx-action@v2
# - name: Set up Docker Buildx
# if: steps.verify-changed-files.outputs.service == 'true'
# uses: docker/setup-buildx-action@v2

- name: Login to GCR
if: steps.verify-changed-files.outputs.service == 'true'
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
# - name: Login to GCR
# if: steps.verify-changed-files.outputs.service == 'true'
# uses: docker/login-action@v2
# with:
# registry: ghcr.io
# username: ${{ github.repository_owner }}
# password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
if: steps.verify-changed-files.outputs.service == 'true'
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}/${{ matrix.service-name }}:latest
file: services/${{ matrix.service-name }}/Dockerfile
# - name: Build and push
# if: steps.verify-changed-files.outputs.service == 'true'
# uses: docker/build-push-action@v3
# with:
# context: .
# push: true
# tags: ghcr.io/${{ github.repository }}/${{ matrix.service-name }}:latest
# file: services/${{ matrix.service-name }}/Dockerfile
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ coverage/
packages/api/preserve/**
.turbo

.npmrc
*.tsbuildinfo
*.log
*.env
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
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": "npm 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": "npm 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": "npm 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": "npm 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 21646dc

Please sign in to comment.