Skip to content

Commit

Permalink
fix: fix parallel platform builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Nordquist committed May 15, 2024
1 parent e8c3d1a commit 3e549ad
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions .github/workflows/platform-builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,25 @@ concurrency:
cancel-in-progress: false

jobs:
semantic-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- id: create_token # get ReleaseBot access token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.RELEASE_BOT_APP_ID }}
private_key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }}
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
id: semantic # Need an `id` for output variables
env:
GITHUB_TOKEN: ${{ steps.create_token.outputs.token }}
with:
semantic_version: 23.0.8

build:
needs: semantic-release
strategy:
matrix:
build:
Expand All @@ -31,26 +49,13 @@ jobs:
node-version: 20
- run: npm install -g yarn
- run: yarn
- id: create_token # get ReleaseBot access token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.RELEASE_BOT_APP_ID }}
private_key: ${{ secrets.RELEASE_BOT_PRIVATE_KEY }}
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
id: semantic # Need an `id` for output variables
env:
GITHUB_TOKEN: ${{ steps.create_token.outputs.token }}
with:
semantic_version: 23.0.8
- run: yarn build
if: steps.semantic.outputs.new_release_published == 'true'
if: needs.semantic-release.outputs.semantic.outputs.new_release_published == 'true'
- run: yarn prepare-release
if: steps.semantic.outputs.new_release_published == 'true'
if: needs.semantic-release.outputs.semantic.outputs.new_release_published == 'true'
- run: yarn package ${{ matrix.build.task }}
if: steps.semantic.outputs.new_release_published == 'true'
if: needs.semantic-release.outputs.semantic.outputs.new_release_published == 'true'
env:
EP_PRE_RELEASE: 'true'
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}

0 comments on commit 3e549ad

Please sign in to comment.