New Transport and Loader Implementation for OData #7311
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: release | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
stable: | |
permissions: | |
contents: read | |
id-token: write | |
pull-requests: write | |
if: github.ref == 'refs/heads/master' | |
uses: the-guild-org/shared-config/.github/workflows/release-stable.yml@v1 | |
with: | |
releaseScript: release | |
versionScript: 'changeset-version' | |
node-version-file: .node-version | |
secrets: | |
githubToken: ${{ secrets.GUILD_BOT_TOKEN }} | |
npmToken: ${{ secrets.NODE_AUTH_TOKEN }} | |
ghcr: | |
runs-on: ubuntu-latest | |
needs: [stable] | |
if: contains(needs.stable.outputs.publishedPackages, '@graphql-mesh/serve-cli') | |
steps: | |
- name: version mesh-serve | |
uses: actions/github-script@v7 | |
id: ver-mesh-serve | |
with: | |
script: | | |
const publishedPackages = ${{ needs.stable.outputs.publishedPackages }}; | |
const meshServe = publishedPackages.find((p) => p.name === '@graphql-mesh/serve-cli'); | |
if (!meshServe) { | |
return core.setFailed('@graphql-mesh/serve-cli was not published!'); | |
} | |
const { version } = meshServe; | |
const [major, minor] = version.split('.'); | |
if (!major || !minor) { | |
return core.setFailed(`Unknown major or minor in version "${version}"!`); | |
} | |
const r = { version, tags: `latest,${major},${major}.${minor},${version}` }; | |
console.log(r); | |
return r; | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: set up docker buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: log in to ghcr | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: set up env | |
uses: the-guild-org/shared-config/setup@v1 | |
with: | |
node-version-file: .node-version | |
- name: prepare | |
run: yarn prebuild | |
- name: bundle | |
run: yarn bundle | |
- name: inject mesh-serve version | |
run: | | |
yarn workspace @graphql-mesh/serve-cli inject-version ${{ fromJSON(steps.ver-mesh-serve.outputs.result).version }} | |
- name: bake and push | |
uses: docker/bake-action@v5 | |
env: | |
MESH_SERVE_TAGS: ${{ fromJSON(steps.ver-mesh-serve.outputs.result).tags }} | |
with: | |
set: | | |
*.cache-from=type=gha | |
*.cache-to=type=gha,mode=max | |
push: true |