Skip to content

Commit

Permalink
Merge branch 'beta' into 511-setup-e2e-testing
Browse files Browse the repository at this point in the history
  • Loading branch information
trezy committed Sep 2, 2024
2 parents 523208d + 8490ecb commit 6eb39be
Show file tree
Hide file tree
Showing 30 changed files with 2,094 additions and 4,081 deletions.
1 change: 1 addition & 0 deletions .codesandbox/sandbox/src/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
// TODO
Empty file.
54 changes: 0 additions & 54 deletions .github/actions/publish-release/action.yml

This file was deleted.

28 changes: 22 additions & 6 deletions .github/workflows/handle-release-branch-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,25 @@ jobs:
with:
fetch-depth: 0

- name: Publish release
uses: ./.github/actions/publish-release
with:
branchName: ${{ github.head_ref || github.ref_name }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: ${{ secrets.NPM_TOKEN }}
- name: Setup Project
uses: ./.github/actions/setup

- name: Build Project
run: npm run build
shell: bash

- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
id: release
run: |
export NEXT_TAG_VERSION=$(npx semantic-release | tee >(cat >&2) | grep 'The next release version is' | sed -E 's/.* ([[:digit:].]+)$/\1/')
echo "new_tag_version=${NEXT_TAG_VERSION}" >> $GITHUB_OUTPUT
shell: bash

- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.new_tag_version != '' }}
run: npm publish ./dist/*.tgz --tag ${{ (github.head_ref || github.ref_name) == 'main' && 'latest' || github.head_ref || github.ref_name }}
shell: bash
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,15 @@ Setting `attachToDevtools` to `true` will automatically attach the application t

###### `defaultTextStyle`

`defaultTextStyle` is a convenience property. Whatever is passed will automatically be assigned to Pixi.js's[`TextStyle.defaultTextStyle`](https://pixijs.download/release/docs/text.TextStyle.html#defaultTextStyle).
`defaultTextStyle` is a convenience property. Whatever is passed will automatically be assigned to Pixi.js's [`TextStyle.defaultTextStyle`](https://pixijs.download/release/docs/text.TextStyle.html#defaultTextStyle).

> [!NOTE]
> This property **is not retroactive**. It will only apply to text components created after `defaultTextStyle` is set. Any text components created before setting `defaultTextStyle` will retain the base styles they had before `defaultTextStyle` was changed.
###### `extensions`

`extensions` is an array of extensions to be loaded. Adding and removing items from this array will automatically load/unload the extensions. The first time this is handled happens before the application is initialised. See Pixi.js's [`extensions`](https://pixijs.download/release/docs/extensions.html) documentation for more info on extensions.

###### `resizeTo`

The `<Application>` component supports the `resizeTo` property, with some additional functionality: it can accept any HTML element **or** it can take a React `ref` directly.
Expand Down Expand Up @@ -270,7 +274,7 @@ const ParentComponent = () => (

#### `useAsset`

**DEPRECATED.** Use `useAssets` of `useSuspenseAssets` instead.
**DEPRECATED.** Use `useAssets` or `useSuspenseAssets` instead.

#### `useAssets`

Expand Down
Loading

0 comments on commit 6eb39be

Please sign in to comment.