Skip to content

Commit

Permalink
fix: deploy (#386)
Browse files Browse the repository at this point in the history
  • Loading branch information
hmbanan666 authored Jan 6, 2025
1 parent 3490212 commit f5d9c23
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
- name: Set APP ID in env
id: set-app-id
run: |
app_id=$(echo '${{ secrets.DOKPLOY_STAGE_APPS }}' | jq -r '.${{ matrix.app }}')
app_id=$(echo '${{ secrets.DOKPLOY_STAGE_APPS }}' | jq -r '."${{ matrix.app }}"'
echo "::add-mask::$app_id"
echo "APP_ID=$app_id" >> $GITHUB_OUTPUT
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ jobs:
- name: Set APP ID in env
id: set-app-id
run: |
app_id=$(echo '${{ secrets.DOKPLOY_APPS }}' | jq -r '.${{ needs.determine-changes.outputs.package }}')
app_id=$(echo '${{ secrets.DOKPLOY_APPS }}' | jq -r '."${{ needs.determine-changes.outputs.package }}"'
echo "::add-mask::$app_id"
echo "APP_ID=$app_id" >> $GITHUB_OUTPUT
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chat-game/space",
"version": "0.2.0",
"private": true,
"packageManager": "[email protected]",
"pnpm": {
"supportedArchitectures": {
Expand Down Expand Up @@ -33,7 +33,8 @@
"keywords": [
"game",
"online",
"twitch"
"twitch",
"telegram"
],
"scripts": {
"release": "pnpm -r --filter \"./apps/**\" --workspace-concurrency=1 exec -- npx --no-install semantic-release -e semantic-release-monorepo",
Expand Down
19 changes: 8 additions & 11 deletions release.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,27 @@ export default {
{ breaking: true, release: 'major' },
{ type: 'feat', release: 'minor' },
{ type: 'fix', release: 'patch' },
{ type: 'chore', release: false },
{ type: 'chore', release: 'patch' },
{ type: 'refactor', release: 'patch' },
],
},
],
'@semantic-release/release-notes-generator',
[
'@semantic-release/changelog',
{
changelogFile: 'CHANGELOG.md',
},
],
[
'@semantic-release/exec',
{
// eslint-disable-next-line no-template-curly-in-string
prepareCmd: 'pnpm version ${nextRelease.version} --git-tag-version=false',
publishCmd: 'pnpm version ${nextRelease.version} --git-tag-version=false',
},
],
'@semantic-release/github',
[
'@semantic-release/git',
{
assets: ['CHANGELOG.md', 'package.json', 'apps/**/CHANGELOG.md', 'apps/**/package.json'],
assets: ['package.json', 'apps/**/package.json'],
// eslint-disable-next-line no-template-curly-in-string
message: 'chore(release): ${nextRelease.version} [skip ci]',
},
],
'@semantic-release/github',
],
}
}

0 comments on commit f5d9c23

Please sign in to comment.