Update Fable NPM packages #16
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Fable NPM packages | |
on: workflow_dispatch | |
jobs: | |
# Separate build job for JavaScript | |
update-fable-packages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.PAT_TOKEN }} | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '6.0.x' | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: dotnet tool restore | |
- name: Run release pipeline with auto-update option | |
run: | | |
dotnet fsi build.fsx -p AutoUpdate | |
# - name: "Set current date as env variable" | |
# run: | | |
# echo "builddate=$(date +'%Y-%m-%d_%H-%M-%S'')" >> $GITHUB_OUTPUT | |
# id: version # this is used on variable path | |
# - uses: EndBug/add-and-commit@v9 | |
# with: | |
# author_name: Continuous Integration (AutoUpdate) | |
# author_email: [email protected] | |
# message: 'Auto update Fable npm packages ${{ steps.version.outputs.builddate }}' |