Skip to content

Add CI Workflow for Examples #133

Add CI Workflow for Examples

Add CI Workflow for Examples #133

Workflow file for this run

name: CI
on:
push:
branches:
- main
tags:
- '**'
pull_request:
branches:
- main
permissions:
contents: read
concurrency:
group: washboard-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
uses: ./.github/workflows/ci_build.yml
test:
uses: ./.github/workflows/ci_test.yml
release:
uses: ./.github/workflows/ci_release.yml
# Only run on main repo, don't try to release on forks
# Also only run on pushes to main branch, i.e. PRs and merge groups should not run this step
if: |
(github.repository == 'wasmCloud/typescript') &&
(github.event_name == 'push' && github.ref == 'refs/heads/main')
needs: [build, test]
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
permissions:
contents: write # Needed to commit changesets
pull-requests: write # Needed to create pull requests
id-token: write # Needed for npm provenance
ci-check:
needs: [build, test]
if: ${{ always() }}
uses: ./.github/workflows/workflow_check.yml
with:
pass-condition: ${{ contains(needs.*.result, 'failure') == false }}