Merge remote-tracking branch 'upstream/beta' into more-tests
9
.github/workflows/create-release.yml
vendored
@ -20,6 +20,7 @@ permissions:
|
||||
jobs:
|
||||
create-release:
|
||||
if: github.repository == 'pagefaultgames/pokerogue' && (vars.BETA_DEPLOY_BRANCH == '' || ! startsWith(vars.BETA_DEPLOY_BRANCH, 'release'))
|
||||
timeout-minutes: 10
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed for github cli commands
|
||||
runs-on: ubuntu-latest
|
||||
@ -36,11 +37,13 @@ jobs:
|
||||
exit 1
|
||||
fi
|
||||
shell: bash
|
||||
|
||||
- uses: actions/create-github-app-token@v2
|
||||
id: app-token
|
||||
with:
|
||||
app-id: ${{ secrets.PAGEFAULT_APP_ID }}
|
||||
private-key: ${{ secrets.PAGEFAULT_APP_PRIVATE_KEY }}
|
||||
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
@ -48,8 +51,10 @@ jobs:
|
||||
# Always base off of beta branch, regardless of the branch the workflow was triggered from.
|
||||
ref: beta
|
||||
token: ${{ steps.app-token.outputs.token }}
|
||||
|
||||
- name: Create release branch
|
||||
run: git checkout -b release
|
||||
|
||||
# In order to be able to open a PR into beta, we need the branch to have at least one change.
|
||||
- name: Overwrite RELEASE file
|
||||
run: |
|
||||
@ -58,11 +63,14 @@ jobs:
|
||||
echo "Release v${{ github.event.inputs.versionName }}" > RELEASE
|
||||
git add RELEASE
|
||||
git commit -m "Stage release v${{ github.event.inputs.versionName }}"
|
||||
|
||||
- name: Push new branch
|
||||
run: git push origin release
|
||||
|
||||
# The repository variable is used by the deploy-beta workflow to determine whether to deploy from beta or release.
|
||||
- name: Set repository variable
|
||||
run: GITHUB_TOKEN="${{ steps.app-token.outputs.token }}" gh variable set BETA_DEPLOY_BRANCH --body "release"
|
||||
|
||||
- name: Create pull request to main
|
||||
run: |
|
||||
gh pr create --base main \
|
||||
@ -70,6 +78,7 @@ jobs:
|
||||
--title "Release v${{ github.event.inputs.versionName }} to main" \
|
||||
--body "This PR is for the release of v${{ github.event.inputs.versionName }}, and was created automatically by the GitHub Actions workflow invoked by ${{ github.actor }}" \
|
||||
--draft
|
||||
|
||||
- name: Create pull request to beta
|
||||
run: |
|
||||
gh pr create --base beta \
|
||||
|
1
.github/workflows/deploy-beta.yml
vendored
@ -12,6 +12,7 @@ on:
|
||||
jobs:
|
||||
deploy:
|
||||
if: github.repository == 'pagefaultgames/pokerogue' && github.ref_name == (vars.BETA_DEPLOY_BRANCH || 'beta')
|
||||
timeout-minutes: 10
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
1
.github/workflows/deploy.yml
vendored
@ -11,6 +11,7 @@ on:
|
||||
jobs:
|
||||
deploy:
|
||||
if: github.repository == 'pagefaultgames/pokerogue'
|
||||
timeout-minutes: 10
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
5
.github/workflows/github-pages.yml
vendored
@ -6,11 +6,13 @@ on:
|
||||
- main
|
||||
- beta
|
||||
- release
|
||||
- 'hotfix*'
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- beta
|
||||
- release
|
||||
- 'hotfix*'
|
||||
merge_group:
|
||||
types: [checks_requested]
|
||||
|
||||
@ -18,6 +20,7 @@ jobs:
|
||||
pages:
|
||||
name: Github Pages
|
||||
if: github.repository == 'pagefaultgames/pokerogue'
|
||||
timeout-minutes: 10
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
api-dir: ./
|
||||
@ -67,7 +70,7 @@ jobs:
|
||||
pnpm exec typedoc --out /tmp/docs --githubPages false --entryPoints ./src/
|
||||
|
||||
- name: Commit & Push docs
|
||||
if: github.event_name == 'push'
|
||||
if: github.event_name == 'push' && (github.ref_name == 'beta' || github.ref_name == 'main')
|
||||
run: |
|
||||
cd pokerogue_gh
|
||||
git config user.email "github-actions[bot]@users.noreply.github.com"
|
||||
|
3
.github/workflows/linting.yml
vendored
@ -6,17 +6,20 @@ on:
|
||||
- main
|
||||
- beta
|
||||
- release
|
||||
- 'hotfix*'
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- beta
|
||||
- release
|
||||
- 'hotfix*'
|
||||
merge_group:
|
||||
types: [checks_requested]
|
||||
|
||||
jobs:
|
||||
run-linters:
|
||||
name: Run linters
|
||||
timeout-minutes: 10
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
|
1
.github/workflows/post-release-deleted.yml
vendored
@ -6,6 +6,7 @@ jobs:
|
||||
# Set the BETA_DEPLOY_BRANCH variable to beta when a release branch is deleted
|
||||
update-release-var:
|
||||
if: github.repository == 'pagefaultgames/pokerogue' && github.event.ref_type == 'branch' && github.event.ref == 'release'
|
||||
timeout-minutes: 5
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Set BETA_DEPLOY_BRANCH to beta
|
||||
|
1
.github/workflows/test-shard-template.yml
vendored
@ -21,6 +21,7 @@ jobs:
|
||||
test:
|
||||
# We can't use dynmically named jobs until https://github.com/orgs/community/discussions/13261 is implemented
|
||||
name: Shard
|
||||
timeout-minutes: 10
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ !inputs.skip }}
|
||||
steps:
|
||||
|
5
.github/workflows/tests.yml
vendored
@ -6,17 +6,20 @@ on:
|
||||
- main
|
||||
- beta
|
||||
- release
|
||||
- 'hotfix*'
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
- beta
|
||||
- release
|
||||
- 'hotfix*'
|
||||
merge_group:
|
||||
types: [checks_requested]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
check-path-change-filter:
|
||||
timeout-minutes: 5
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
pull-requests: read
|
||||
@ -35,6 +38,8 @@ jobs:
|
||||
name: Run Tests
|
||||
needs: check-path-change-filter
|
||||
strategy:
|
||||
# don't stop upon 1 shard failing
|
||||
fail-fast: false
|
||||
matrix:
|
||||
shard: [1, 2, 3, 4, 5]
|
||||
uses: ./.github/workflows/test-shard-template.yml
|
||||
|
@ -1,10 +1,11 @@
|
||||
{
|
||||
"name": "pokemon-rogue-battle",
|
||||
"private": true,
|
||||
"version": "1.11.0",
|
||||
"version": "1.10.6",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"start": "vite",
|
||||
"start:prod": "vite --mode production",
|
||||
"start:beta": "vite --mode beta",
|
||||
"start:dev": "vite --mode development",
|
||||
"build": "vite build",
|
||||
"build:beta": "vite build --mode beta",
|
||||
|
Before Width: | Height: | Size: 197 B After Width: | Height: | Size: 195 B |
Before Width: | Height: | Size: 279 B After Width: | Height: | Size: 276 B |
Before Width: | Height: | Size: 290 B After Width: | Height: | Size: 289 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 218 B After Width: | Height: | Size: 215 B |
Before Width: | Height: | Size: 341 B After Width: | Height: | Size: 283 B |
Before Width: | Height: | Size: 349 B After Width: | Height: | Size: 261 B |
Before Width: | Height: | Size: 336 B After Width: | Height: | Size: 331 B |
Before Width: | Height: | Size: 364 B After Width: | Height: | Size: 289 B |
Before Width: | Height: | Size: 280 B After Width: | Height: | Size: 278 B |
Before Width: | Height: | Size: 206 B After Width: | Height: | Size: 205 B |
Before Width: | Height: | Size: 347 B After Width: | Height: | Size: 283 B |
Before Width: | Height: | Size: 235 B After Width: | Height: | Size: 230 B |
Before Width: | Height: | Size: 645 B After Width: | Height: | Size: 610 B |
Before Width: | Height: | Size: 419 B After Width: | Height: | Size: 417 B |
Before Width: | Height: | Size: 363 B After Width: | Height: | Size: 296 B |
Before Width: | Height: | Size: 208 B After Width: | Height: | Size: 206 B |
Before Width: | Height: | Size: 338 B After Width: | Height: | Size: 335 B |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.6 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 290 B After Width: | Height: | Size: 276 B |
Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 53 KiB |
Before Width: | Height: | Size: 471 B After Width: | Height: | Size: 247 B |
Before Width: | Height: | Size: 296 B After Width: | Height: | Size: 295 B |
Before Width: | Height: | Size: 691 B After Width: | Height: | Size: 689 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 151 B |
Before Width: | Height: | Size: 183 B After Width: | Height: | Size: 152 B |
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 154 B |
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 151 B |
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 162 B |
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 151 B |
Before Width: | Height: | Size: 183 B After Width: | Height: | Size: 152 B |
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 154 B |
Before Width: | Height: | Size: 207 B After Width: | Height: | Size: 151 B |
Before Width: | Height: | Size: 201 B After Width: | Height: | Size: 162 B |
Before Width: | Height: | Size: 344 B After Width: | Height: | Size: 351 B |
Before Width: | Height: | Size: 350 B After Width: | Height: | Size: 337 B |
Before Width: | Height: | Size: 476 B After Width: | Height: | Size: 444 B |
Before Width: | Height: | Size: 549 B After Width: | Height: | Size: 377 B |
Before Width: | Height: | Size: 289 B After Width: | Height: | Size: 217 B |
Before Width: | Height: | Size: 528 B After Width: | Height: | Size: 284 B |
Before Width: | Height: | Size: 172 B |
Before Width: | Height: | Size: 190 B |
Before Width: | Height: | Size: 636 B After Width: | Height: | Size: 430 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 243 B |
After Width: | Height: | Size: 191 B |
After Width: | Height: | Size: 221 B |
Before Width: | Height: | Size: 128 B After Width: | Height: | Size: 128 B |
After Width: | Height: | Size: 198 B |
After Width: | Height: | Size: 235 B |
After Width: | Height: | Size: 194 B |
After Width: | Height: | Size: 180 B |
After Width: | Height: | Size: 255 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 214 B |
After Width: | Height: | Size: 277 B |
Before Width: | Height: | Size: 200 B After Width: | Height: | Size: 200 B |
Before Width: | Height: | Size: 204 B After Width: | Height: | Size: 204 B |
Before Width: | Height: | Size: 168 B After Width: | Height: | Size: 168 B |
After Width: | Height: | Size: 135 B |
After Width: | Height: | Size: 206 B |
After Width: | Height: | Size: 247 B |
After Width: | Height: | Size: 216 B |
After Width: | Height: | Size: 268 B |
After Width: | Height: | Size: 132 B |
After Width: | Height: | Size: 160 B |
After Width: | Height: | Size: 229 B |
After Width: | Height: | Size: 185 B |
After Width: | Height: | Size: 188 B |
After Width: | Height: | Size: 218 B |
After Width: | Height: | Size: 137 B |
After Width: | Height: | Size: 232 B |
After Width: | Height: | Size: 221 B |
After Width: | Height: | Size: 200 B |
After Width: | Height: | Size: 204 B |
After Width: | Height: | Size: 168 B |
After Width: | Height: | Size: 135 B |
After Width: | Height: | Size: 206 B |
After Width: | Height: | Size: 255 B |
After Width: | Height: | Size: 207 B |
After Width: | Height: | Size: 210 B |
After Width: | Height: | Size: 130 B |
After Width: | Height: | Size: 237 B |
After Width: | Height: | Size: 234 B |
After Width: | Height: | Size: 185 B |
After Width: | Height: | Size: 188 B |
After Width: | Height: | Size: 219 B |