Skip to content

Commit

Permalink
Merge pull request #1 from elsoul/version
Browse files Browse the repository at this point in the history
update release actions/packages
  • Loading branch information
POPPIN-FUMI authored Nov 7, 2023
2 parents b8475c6 + 3d1c20f commit 6901dca
Show file tree
Hide file tree
Showing 6 changed files with 2,215 additions and 1,607 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/discord.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: SkeetFrameworkDiscord

on:
release:
types: [created]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm i -g yarn
- run: yarn install
- name: Disord Notification Epics
run: yarn discord epics ${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
DISCORD_CHANNEL_ID: ${{ secrets.DISCORD_CHANNEL_ID }}
DISCORD_CHANNEL_ID_JA: ${{ secrets.DISCORD_CHANNEL_ID_JA }}
- name: Disord Notification LABO
run: yarn discord labo ${{ github.repository }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DISCORD_TOKEN_LABO: ${{ secrets.DISCORD_TOKEN_LABO }}
LABO_SKEET_CHANNEL_ID: ${{ secrets.LABO_SKEET_CHANNEL_ID }}
- name: Post X package update notification
if: success()
run: |
curl --location ${{ secrets.TW_ENDPOINT }} \
--header 'Content-Type: application/json' \
--data '{"repo": "${{ github.repository }}", "hey": "${{ secrets.TW_ENDPOINT_SECRET }}"}'
27 changes: 27 additions & 0 deletions .github/workflows/runDiscordChangeLog.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import { discordChangeLog } from '@skeet-framework/discord-utils'
import { dotenv } from '@skeet-framework/utils'
dotenv.config()

type ProjectType = 'labo' | 'epics'

const run = async (project: ProjectType, repoName: string) => {
if (project === 'labo') {
console.log('labo')
const token = process.env.DISCORD_TOKEN_LABO || ''
const channelId = process.env.LABO_SKEET_CHANNEL_ID || ''
await discordChangeLog(token, repoName, [channelId])
} else if (project === 'epics') {
console.log('epics')
const token = process.env.DISCORD_TOKEN || ''
const channelId = process.env.DISCORD_CHANNEL_ID || ''
const channelIdJA = process.env.DISCORD_CHANNEL_ID_JA || ''
await discordChangeLog(token, repoName, [channelId])
await discordChangeLog(token, repoName, [channelIdJA], 'ja')
} else {
console.log('invalid project name')
}
}

const project = process.argv[2] as ProjectType
const repoArg = process.argv[3] || ''
void run(project, repoArg)
38 changes: 19 additions & 19 deletions graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,44 +25,44 @@
"seed": "npx ts-node --transpile-only prisma/seed.ts"
},
"dependencies": {
"@apollo/server": "4.9.2",
"@apollo/server": "4.9.5",
"@jcm/nexus-plugin-relay-global-id": "0.2.0",
"@jcm/nexus-plugin-relay-node-interface": "0.2.0",
"@prisma/client": "5.3.1",
"@skeet-framework/utils": "1.2.1",
"firebase-admin": "11.10.1",
"graphql": "16.8.0",
"@prisma/client": "5.5.2",
"@skeet-framework/utils": "1.2.3",
"firebase-admin": "11.11.0",
"graphql": "16.8.1",
"graphql-depth-limit": "1.1.0",
"graphql-middleware": "6.1.35",
"graphql-query-complexity": "0.12.0",
"graphql-relay": "0.10.0",
"graphql-shield": "7.6.5",
"nexus": "1.3.0",
"nexus-prisma": "2.0.1",
"prisma": "5.3.1"
"prisma": "5.5.2"
},
"devDependencies": {
"@types/cors": "2.8.13",
"@types/express": "4.17.17",
"@types/graphql-depth-limit": "1.1.3",
"@types/jest": "29.5.4",
"@types/node": "20.5.7",
"@types/node-fetch": "2.6.4",
"@types/superagent": "4.1.18",
"@types/supertest": "2.0.12",
"@types/cors": "2.8.16",
"@types/express": "4.17.21",
"@types/graphql-depth-limit": "1.1.6",
"@types/jest": "29.5.7",
"@types/node": "20.8.10",
"@types/node-fetch": "2.6.9",
"@types/superagent": "4.1.21",
"@types/supertest": "2.0.16",
"babel-loader": "9.1.3",
"esbuild": "0.19.2",
"eslint": "8.48.0",
"esbuild": "0.19.5",
"eslint": "8.53.0",
"eslint-config-prettier": "9.0.0",
"jest": "29.6.4",
"jest": "29.7.0",
"nodemon": "3.0.1",
"npm-check-updates": "16.13.2",
"npm-check-updates": "16.14.6",
"prettier": "3.0.3",
"prettier-plugin-prisma": "5.0.0",
"superagent": "8.1.2",
"supertest": "6.3.3",
"ts-jest": "29.1.1",
"ts-loader": "9.4.4",
"ts-loader": "9.5.0",
"ts-node": "10.9.1",
"tsconfig-paths": "4.2.0",
"typescript": "5.2.2"
Expand Down
Loading

0 comments on commit 6901dca

Please sign in to comment.