Skip to content

Commit 6d61a83

Browse files
committed
chore: enter pre-release mode for next branch (tag: next)
chore(ci): align next.yml with ci.yml release-job conventions ci: add branch documentation previews
1 parent 5b70066 commit 6d61a83

4 files changed

Lines changed: 162 additions & 6 deletions

File tree

.changeset/pre.json

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
{
2+
"mode": "pre",
3+
"tag": "next",
4+
"initialVersions": {
5+
"@equinor/fusion-framework-cookbook-app-react": "5.0.1",
6+
"@equinor/fusion-framework-cookbook-app-react-ag-grid": "2.0.12",
7+
"@equinor/fusion-framework-cookbook-app-react-ai": "0.0.3",
8+
"@equinor/fusion-framework-cookbook-app-react-apploader": "1.0.1",
9+
"@equinor/fusion-framework-cookbook-app-react-assets": "1.0.1",
10+
"@equinor/fusion-framework-cookbook-app-react-bookmark": "5.0.1",
11+
"@equinor/fusion-framework-cookbook-app-react-bookmark-advanced": "5.0.3",
12+
"@equinor/fusion-framework-cookbook-app-react-charts": "2.0.4",
13+
"@equinor/fusion-framework-cookbook-app-react-context": "5.0.7",
14+
"@equinor/fusion-framework-cookbook-app-react-context-custom-error": "5.0.7",
15+
"@equinor/fusion-framework-cookbook-app-react-environment-variables": "2.0.2",
16+
"@equinor/fusion-framework-cookbook-app-react-feature-flag": "2.0.6",
17+
"@equinor/fusion-framework-cookbook-app-react-module": "1.0.1",
18+
"@equinor/fusion-framework-cookbook-app-react-msal": "2.0.1",
19+
"@equinor/fusion-framework-cookbook-app-react-people": "5.0.6",
20+
"@equinor/fusion-framework-cookbook-app-react-router": "5.0.3",
21+
"@equinor/fusion-framework-cookbook-app-react-router-legacy": "1.0.2",
22+
"@equinor/fusion-framework-cookbook-app-react-settings": "2.0.1",
23+
"@equinor/fusion-framework-cookbook-app-react-state": "1.0.1",
24+
"@equinor/fusion-framework-cookbook-app-react-styling": "1.1.1",
25+
"@equinor/fusion-framework-cookbook-app-vanilla": "2.0.0",
26+
"poc-portal": "1.1.96",
27+
"portal": "0.1.81",
28+
"portal-analytics": "0.4.49",
29+
"@equinor/fusion-framework-app": "13.0.1",
30+
"@equinor/fusion-framework-cli": "15.2.7",
31+
"@equinor/fusion-framework-cli-plugin-ai-base": "4.0.8",
32+
"@equinor/fusion-framework-cli-plugin-ai-chat": "3.0.8",
33+
"@equinor/fusion-framework-cli-plugin-ai-index": "3.0.9",
34+
"@equinor/fusion-framework-cli-plugin-copilot": "2.0.4",
35+
"@equinor/fusion-framework-dev-portal": "10.0.2",
36+
"@equinor/fusion-framework-dev-server": "2.0.18",
37+
"@equinor/fusion-framework": "8.0.15",
38+
"@equinor/fusion-lint": "0.3.2",
39+
"@equinor/fusion-framework-lint-config": "1.1.0",
40+
"@equinor/fusion-framework-lint-core": "1.0.0",
41+
"@equinor/fusion-framework-lint-lsp": "0.2.3",
42+
"@equinor/fusion-framework-lint-rules": "1.1.0",
43+
"fusion-ts-lint-vscode": "0.2.3",
44+
"@equinor/fusion-framework-module-ag-grid": "37.0.1",
45+
"@equinor/fusion-framework-module-ai": "6.0.2",
46+
"@equinor/fusion-framework-module-analytics": "3.0.6",
47+
"@equinor/fusion-framework-module-app": "8.0.4",
48+
"@equinor/fusion-framework-module-azure-identity": "0.2.3",
49+
"@equinor/fusion-framework-module-bookmark": "4.0.4",
50+
"@equinor/fusion-framework-module-context": "8.0.3",
51+
"@equinor/fusion-framework-module-event": "6.0.1",
52+
"@equinor/fusion-framework-module-feature-flag": "2.0.3",
53+
"@equinor/fusion-framework-module-http": "8.0.5",
54+
"@equinor/fusion-framework-module": "6.1.2",
55+
"@equinor/fusion-framework-module-msal": "10.0.2",
56+
"@equinor/fusion-framework-module-msal-node": "4.1.3",
57+
"@equinor/fusion-framework-module-navigation": "7.0.7",
58+
"@equinor/fusion-framework-module-service-discovery": "10.0.2",
59+
"@equinor/fusion-framework-module-services": "8.1.0",
60+
"@equinor/fusion-framework-module-signalr": "13.0.1",
61+
"@equinor/fusion-framework-module-state": "2.0.0",
62+
"@equinor/fusion-framework-module-telemetry": "7.0.2",
63+
"@equinor/fusion-framework-module-widget": "16.0.5",
64+
"@equinor/fusion-framework-plugin-context-navigation": "0.1.2",
65+
"@equinor/fusion-framework-react-ag-charts": "15.0.0",
66+
"@equinor/fusion-framework-react-ag-grid": "37.0.1",
67+
"@equinor/fusion-framework-react-app": "14.0.1",
68+
"@equinor/fusion-framework-react-components-bookmark": "2.0.3",
69+
"@equinor/fusion-framework-react-components-people-provider": "2.0.4",
70+
"@equinor/fusion-framework-react": "8.0.1",
71+
"@equinor/fusion-framework-react-module-bookmark": "6.0.1",
72+
"@equinor/fusion-framework-react-module-context": "7.0.2",
73+
"@equinor/fusion-framework-react-module-event": "4.0.2",
74+
"@equinor/fusion-framework-react-module-http": "11.0.1",
75+
"@equinor/fusion-framework-react-module": "4.0.2",
76+
"@equinor/fusion-framework-react-module-signalr": "4.0.3",
77+
"@equinor/fusion-framework-react-router": "2.4.0",
78+
"@equinor/fusion-imports": "2.0.2",
79+
"@equinor/fusion-load-env": "2.0.3",
80+
"@equinor/fusion-log": "2.0.2",
81+
"@equinor/fusion-observable": "9.1.1",
82+
"@equinor/fusion-query": "7.0.3",
83+
"@equinor/fusion-framework-vite-plugin-api-service": "2.0.5",
84+
"@equinor/fusion-framework-vite-plugin-markdown": "1.1.2",
85+
"@equinor/fusion-framework-vite-plugin-raw-imports": "2.0.1",
86+
"@equinor/fusion-framework-vite-plugin-routes-dsl": "1.0.2",
87+
"@equinor/fusion-framework-vite-plugin-spa": "4.0.16",
88+
"@equinor/fusion-framework-widget": "2.0.3",
89+
"@equinor/fusion-framework-docs": "0.4.20"
90+
},
91+
"changesets": []
92+
}

.github/workflows/generate-docs.yml

Lines changed: 61 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,76 @@ concurrency:
2626
jobs:
2727
build:
2828
runs-on: ubuntu-latest
29+
outputs:
30+
preview-path: ${{ steps.preview-path.outputs.value }}
2931
steps:
3032
- uses: actions/checkout@v7
31-
- uses: ./.github/actions/build-docs
33+
with:
34+
fetch-depth: 0
35+
36+
- name: Determine preview path
37+
if: ${{ inputs.preview || github.ref != 'refs/heads/main' }}
38+
id: preview-path
39+
shell: bash
40+
run: echo "value=$(printf '%s' "$GITHUB_REF_NAME" | sed 's#[^A-Za-z0-9._-]#-#g')" >> "$GITHUB_OUTPUT"
41+
42+
- name: Build documentation
43+
if: ${{ !inputs.preview && github.ref == 'refs/heads/main' }}
44+
uses: ./.github/actions/build-docs
45+
46+
- name: Build preview
47+
if: ${{ inputs.preview || github.ref != 'refs/heads/main' }}
48+
uses: ./.github/actions/build-docs
49+
env:
50+
VUEPRESS_BASE: /fusion-framework/previews/${{ steps.preview-path.outputs.value }}/
51+
with:
52+
upload-artifact: false
53+
54+
- name: Preserve preview output
55+
if: ${{ inputs.preview || github.ref != 'refs/heads/main' }}
56+
shell: bash
57+
run: |
58+
mkdir -p "$RUNNER_TEMP/docs-preview"
59+
cp -R vue-press/dist/. "$RUNNER_TEMP/docs-preview/"
60+
61+
- name: Checkout main
62+
if: ${{ inputs.preview || github.ref != 'refs/heads/main' }}
63+
uses: actions/checkout@v7
64+
with:
65+
ref: main
66+
fetch-depth: 0
67+
68+
- name: Build production documentation
69+
if: ${{ inputs.preview || github.ref != 'refs/heads/main' }}
70+
uses: ./.github/actions/build-docs
71+
with:
72+
upload-artifact: false
73+
74+
- name: Add preview to production output
75+
if: ${{ inputs.preview || github.ref != 'refs/heads/main' }}
76+
shell: bash
77+
run: |
78+
mkdir -p "vue-press/dist/previews/${{ steps.preview-path.outputs.value }}"
79+
cp -R "$RUNNER_TEMP/docs-preview/." "vue-press/dist/previews/${{ steps.preview-path.outputs.value }}/"
80+
81+
- name: Upload Pages artifact
82+
if: ${{ inputs.preview || github.ref != 'refs/heads/main' }}
83+
uses: actions/upload-pages-artifact@v4
84+
with:
85+
path: ./vue-press/dist
3286

3387
deploy:
3488
environment:
3589
name: github-pages
36-
url: ${{ steps.deployment.outputs.page_url }}
90+
url: ${{ (inputs.preview || github.ref != 'refs/heads/main') && format('{0}previews/{1}/', steps.deployment.outputs.page_url, needs.build.outputs.preview-path) || steps.deployment.outputs.page_url }}
3791
runs-on: ubuntu-latest
3892
needs: build
3993
steps:
4094
- name: Deploy to GitHub Pages
4195
id: deployment
4296
uses: actions/deploy-pages@v5
43-
with:
44-
preview: ${{ inputs.preview || github.ref != 'refs/heads/main' }}
97+
98+
- name: Publish preview URL
99+
if: ${{ inputs.preview || github.ref != 'refs/heads/main' }}
100+
shell: bash
101+
run: echo "### [Open docs preview](${{ steps.deployment.outputs.page_url }}previews/${{ needs.build.outputs.preview-path }}/)" >> "$GITHUB_STEP_SUMMARY"

.github/workflows/next.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ on:
77

88
concurrency: ${{ github.workflow }}-${{ github.ref }}
99
permissions:
10-
contents: write
11-
pull-requests: write
10+
contents: write # Required for creating changesets branch and pushing changes
11+
packages: write # Required for publishing to npm registry
12+
id-token: write # Required for OIDC token generation
13+
pull-requests: write # Required for changesets action to create PRs
1214

1315
jobs:
1416
check-pre-release:
@@ -63,6 +65,9 @@ jobs:
6365
with:
6466
fetch-depth: 0
6567

68+
- name: Configure git user (trigger actor)
69+
uses: ./.github/actions/config-git-user
70+
6671
- name: Setup node and install deps
6772
uses: ./.github/actions/node-setup
6873
with:
@@ -73,6 +78,7 @@ jobs:
7378
uses: changesets/action@v1
7479
with:
7580
title: '🤖 Bip Bop - Fusion Framework Pre-Release'
81+
setupGitUser: false
7682
version: pnpm changeset:version
7783
publish: pnpm publish -r --no-git-checks --report-summary --tag ${{ needs.check-pre-release.outputs.tag }}
7884
env:

turbo.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"tasks": {
55
"build": {
66
"dependsOn": ["^build"],
7+
"env": ["VUEPRESS_BASE"],
78
"outputs": ["dist/**"],
89
"cache": true
910
}

0 commit comments

Comments
 (0)