Skip to content

Commit

Permalink
Merge pull request #270 from Crossbell-Box/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
dohooo committed Nov 27, 2023
2 parents 59a9a30 + aefaeca commit fda03f0
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 11 deletions.
1 change: 1 addition & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": "@changesets/changelog-git",
"commit": false,
"privatePackages": { "version": true, "tag": true },
"fixed": [],
"linked": [],
"access": "restricted",
Expand Down
5 changes: 5 additions & 0 deletions .changeset/silent-shrimps-juggle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"xlog": patch
---

fix: Release a hot-updates for resolving the display error on the profile page.
23 changes: 15 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,31 @@ jobs:
with:
result-encoding: string
script: |
const resolveReleaseType = require('./scripts/resolve-release-type.js')
const releaseType = await resolveReleaseType();
return releaseType
const resolveReleaseInfo = require('./scripts/resolve-release-type.js')
const releaseInfo = await resolveReleaseInfo();
core.setOutput('type', releaseInfo.type);
core.setOutput('oldVersion', releaseInfo.oldVersion);
core.setOutput('newVersion', releaseInfo.newVersion);
- name: Print release type
run: |
echo ${{ steps.release-type.outputs.type }}
echo ${{ steps.release-type.outputs.oldVersion }}
echo ${{ steps.release-type.outputs.newVersion }}
- name: Bump Versions
if: steps.release-type.outputs.result != ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: changesets/action@v1
with:
title: 'chore: update versions from v${{ steps.release-type.outputs.oldVersion }} to v${{ steps.release-type.outputs.newVersion }}'
version: yarn run release:version
publish: yarn run release:publish
commit: 'chore: update versions'
title: 'chore: update versions'
commit: 'chore: update versions [${{ steps.release-type.outputs.newVersion }}]'

- name: Trigger Publish Preview workflow
if: steps.release-type.outputs.result != ''
if: steps.release-type.outputs.type != ''
uses: benc-uk/workflow-dispatch@v1
with:
workflow: preview.yml
inputs: '{ "release_type": "${{ steps.release-type.outputs.result }}" }'
inputs: '{ "release_type": "${{ steps.release-type.outputs.type }}" }'
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"ios:production:release": "EXPO_NO_DOTENV=1 STAGE=production expo run:ios --configuration Release",
"web": "EXPO_NO_DOTENV=1 STAGE=development expo start --web",
"release:version": "changeset status & changeset version",
"release:publish": "changeset tag",
"release:publish": "changeset publish",
"update:production": "EXPO_NO_DOTENV=1 STAGE=production node scripts/eas-update.js eas update --non-interactive --channel production --auto",
"update:preview": "EXPO_NO_DOTENV=1 STAGE=test node scripts/eas-update.js eas update --non-interactive --channel preview --auto",
"build:development": "EXPO_NO_DOTENV=1 STAGE=development eas build --non-interactive --profile development",
Expand Down
4 changes: 2 additions & 2 deletions scripts/resolve-release-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = async () => {
return "";
}

console.log("Release type: ", release.type);
console.log("Release info: ", release);

return release.type;
return release;
};

0 comments on commit fda03f0

Please sign in to comment.