Skip to content

Commit b48c40f

Browse files
committed
fix: update with new NPM deployment strategy
1 parent 255966b commit b48c40f

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ on:
99
- "*.x"
1010
- "*.*.x"
1111

12+
permissions:
13+
contents: write # to be able to publish a GitHub release
14+
issues: write # to be able to comment on released issues
15+
pull-requests: write # to be able to comment on released pull requests
16+
id-token: write # to enable use of OIDC for tru
17+
1218
jobs:
1319
release:
1420
name: Release

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Features/tutorialv1.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ import { defaultAssetsUrl } from "./default_assets_url";
22

33
export const TUTORIAL_V1_URL = `${defaultAssetsUrl}/tutorialv1.html`;
44

5-
export function launchTutorialv1(): void {
5+
export function launchTutorialv1(force: boolean = false): void {
66
console.info("Start onboarding application!", TUTORIAL_V1_URL);
77

88
console.info("Player tutorial done information: ", WA.player.state.tutorialDone);
9-
if (WA.player.state.tutorialDone) return;
9+
if (WA.player.state.tutorialDone && !force) return;
1010

1111
//open modal and show onboarding tuto
1212
WA.ui.modal.openModal({
@@ -15,5 +15,6 @@ export function launchTutorialv1(): void {
1515
allow: "fullscreen; clipboard-read; clipboard-write",
1616
allowApi: true,
1717
position: "right",
18+
allowFullScreen: true,
1819
});
1920
}

0 commit comments

Comments
 (0)