v0.1.1 release #45
Workflow file for this run
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: Build | |
on: | |
push: | |
branches: | |
- main | |
- release-* | |
tags: | |
- v* | |
pull_request: | |
branches: | |
- main | |
- release-* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write # The OIDC ID token is used for authentication with JSR. | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: denoland/setup-deno@v2 | |
with: | |
deno-version: v2.x | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: "1.24" | |
- name: Install Apex CLI | |
run: deno install -g -A --unstable-worker-options -f -n apex jsr:@apexlang/apex | |
# Temporarily disable until it's determined why apex generate is not writing files. | |
# - name: Generator diff test | |
# run: ./diffcheck.sh | |
# working-directory: ./testdata | |
- name: Is Release? | |
if: startswith(github.ref, 'refs/tags/v') | |
run: echo "DEPLOY_PACKAGE=true" >> $GITHUB_ENV | |
- name: Publish to npm | |
if: env.DEPLOY_PACKAGE == 'true' | |
run: npx jsr publish |