Skip to content

Commit d953981

Browse files
committed
Separate jobs for release and update fable packages
1 parent a260ffe commit d953981

File tree

2 files changed

+38
-2
lines changed

2 files changed

+38
-2
lines changed

.github/workflows/release.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
# Separate build job for JavaScript
11+
update-fable-packages:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Setup .NET
18+
uses: actions/setup-dotnet@v1
19+
with:
20+
dotnet-version: '6.0.x'
21+
22+
- name: Setup Node.js environment
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: 20
26+
27+
- name: Install dependencies
28+
run: dotnet tool restore
29+
30+
- name: Run release pipeline with auto-update option
31+
run: |
32+
dotnet fsi build.fsx -p Release
33+
env:
34+
GITHUB_TOKEN_FABLE_ORG: ${{ github.token }}

.github/workflows/update_fable_packages.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Update Fable NPM packages and release
1+
name: Update Fable NPM packages
22

33
on: workflow_dispatch
44

@@ -16,7 +16,9 @@ jobs:
1616
dotnet-version: '6.0.x'
1717

1818
- name: Setup Node.js environment
19-
uses: actions/[email protected]
19+
uses: actions/setup-node@v3
20+
with:
21+
node-version: 20
2022

2123
- name: Install dependencies
2224
run: dotnet tool restore

0 commit comments

Comments
 (0)