Skip to content

Commit a635ae0

Browse files
committed
Merge branch 'build/github-publish' into fmtm
2 parents a082cec + 66a120e commit a635ae0

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/fmtm.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: 'FMTM Dist Publish'
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- fmtm
8+
9+
jobs:
10+
publish:
11+
name: 'Build and publish compiled web forms package'
12+
runs-on: 'ubuntu-latest'
13+
permissions:
14+
pages: write # to deploy to Pages
15+
id-token: write # to verify the deployment origin
16+
environment:
17+
name: github-pages
18+
url: ${{ steps.deployment.outputs.page_url }}
19+
20+
steps:
21+
- uses: 'actions/checkout@v4'
22+
23+
- uses: 'volta-cli/action@v4'
24+
with:
25+
node-version: '22.12.0'
26+
yarn-version: '1.22.22'
27+
28+
- run: 'yarn install --frozen-lockfile'
29+
- run: 'yarn build --force'
30+
31+
- name: Upload GH Pages Artifact
32+
uses: actions/upload-pages-artifact@v3
33+
with:
34+
# The final bundle is under dist/index.js
35+
path: packages/web-forms/dist
36+
37+
- name: Setup Pages
38+
id: pages
39+
uses: actions/configure-pages@v5
40+
41+
- name: Deploy to GitHub Pages
42+
id: deployment
43+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)