1111 inputs :
1212 version :
1313 description : ' Version to publish'
14- required : false
14+ required : true
1515 type : string
1616
1717env :
@@ -23,40 +23,43 @@ jobs:
2323 build-and-publish :
2424 runs-on : ubuntu-latest
2525 steps :
26- - uses : actions/checkout@v4
27- with :
28- fetch-depth : 2
29-
30- - name : Update Engines
26+ - name : Debug Print Version
3127 run : |
32- node -e 'const fs = require("fs"); const pkg = require("./package.json"); console.log("Before modification:", JSON.stringify(pkg.engines, null, 2)); pkg.engines.node = ">=20.0.0"; pkg.engines.pnpm = "9.15.9"; pkg.packageManager = "[email protected] "; console.log("After modification:", JSON.stringify(pkg.engines, null, 2)); fs.writeFileSync("./package.json", JSON.stringify(pkg, null, 2));' 28+ echo "Version: ${{ github.event.inputs.version }}"
29+
30+ # - uses: actions/checkout@v4
31+ # with:
32+ # fetch-depth: 2
3333
34- - name : Install
35- uses : ./.github/actions/legacy-install
34+ # - name: Update Engines
35+ # run: |
36+ # node -e 'const fs = require("fs"); const pkg = require("./package.json"); console.log("Before modification:", JSON.stringify(pkg.engines, null, 2)); pkg.engines.node = ">=20.0.0"; pkg.engines.pnpm = "9.15.9"; pkg.packageManager = "[email protected] "; console.log("After modification:", JSON.stringify(pkg.engines, null, 2)); fs.writeFileSync("./package.json", JSON.stringify(pkg, null, 2));' 37+
38+ # - name: Install
39+ # uses: ./.github/actions/legacy-install
3640
37- - name : Compile
38- run : pnpm compile
41+ # - name: Compile
42+ # run: pnpm compile
3943
40- - name : Build FDR CJS
41- run : pnpm --filter @fern-platform/fdr build:tsup:cjs
42- - name : Build self-hosted bundle
43- run : pnpm docs:self-hosted-bundle:build
44+ # - name: Build FDR CJS
45+ # run: pnpm --filter @fern-platform/fdr build:tsup:cjs
46+ # - name: Build self-hosted bundle
47+ # run: pnpm docs:self-hosted-bundle:build
4448
45- - name : Set up Docker Buildx
46- uses : docker/setup-buildx-action@v3
49+ # - name: Set up Docker Buildx
50+ # uses: docker/setup-buildx-action@v3
4751
48- - name : Login to Docker Hub
49- uses : docker/login-action@v3
50- with :
51- username : fernapi
52- password : ${{ secrets.FERN_API_DOCKERHUB_PASSWORD }}
52+ # - name: Login to Docker Hub
53+ # uses: docker/login-action@v3
54+ # with:
55+ # username: fernapi
56+ # password: ${{ secrets.FERN_API_DOCKERHUB_PASSWORD }}
5357
54- - name : Build Docker image
55- run : pnpm --filter=@fern-platform/self-hosted docker:build
58+ # - name: Build Docker image
59+ # run: pnpm --filter=@fern-platform/self-hosted docker:build
5660
57- - name : Push to Docker Hub
58- run : |
59- echo "Pushing to Docker Hub with version: ${{ github.event.inputs.version || 'latest' }}"
60- echo "Skipping Docker Hub push for now while testing this workflow"
61+ # - name: Push to Docker Hub
62+ # run: |
63+ # echo "Pushing to Docker Hub with version: ${{ github.event.inputs.version || 'latest' }}"
6164 # docker tag fern-self-hosted:latest fernapi/fern-self-hosted:${{ github.event.inputs.version || 'latest' }}
6265 # docker push fernapi/fern-self-hosted:${{ github.event.inputs.version || 'latest' }}
0 commit comments