Skip to content

Update target to es2024, use tsconfigs for typechecks, and run type checks at the top level (breaking changes) #839

Update target to es2024, use tsconfigs for typechecks, and run type checks at the top level (breaking changes)

Update target to es2024, use tsconfigs for typechecks, and run type checks at the top level (breaking changes) #839

name: Build Templates
on:
pull_request:
types:
- opened
- synchronize
- ready_for_review
- reopened
jobs:
workflow-config:
name: Determine workflow config
runs-on: ubuntu-latest
outputs:
is-dependabot: ${{ steps.determine-workflow-config.outputs.is-dependabot }}
steps:
- uses: actions/checkout@v4
- id: determine-workflow-config
uses: ./.github/actions/determine_workflow_config
with:
is-workflow-dispatch: false
exclude-slow-dispatch-input-value: false
exclude-unstable-dispatch-input-value: false
exclude-release-only-dispatch-input-value: false
link-azle-dispatch-input-value: false
build-templates:
name: Build templates for Dependabot
needs: workflow-config
if: ${{ needs.workflow-config.outputs.is-dependabot == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.LASTMJS_GITHUB_TOKEN }}
- uses: ./.github/actions/setup_node
- uses: ./.github/actions/setup_dfx
- uses: ./.github/actions/retry_command
with:
command: 'npm install'
- name: Install global dependencies
run: |
AZLE_VERBOSE=true npx azle install-global-dependencies --rust --wasi2ic
- name: Build stable template
run: npx azle template
- name: Build experimental template
run: npx azle template --experimental
- uses: ./.github/actions/commit_and_push
with:
branch-name: ${{ github.head_ref }}
commit-message: 'chore: update templates for dependency changes'
gpg-signing-key: ${{ secrets.GPG_SIGNING_KEY }}
signing-key-id: ${{ needs.workflow-config.outputs.is-dependabot == 'true' && '2ED5FB11C6D5168EB9D69C5EF524010C7419CA66' || 'C8B77BCBE16CD2B94B43F9C8757397B82D4ED7B0' }}