Skip to content

Commit

Permalink
fix: publish flow
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 committed Feb 27, 2024
1 parent 55b0c35 commit 3aa9426
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions .github/workflows/alpha-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,35 +35,19 @@ jobs:
git commit -m "build: update versions for release"
git push origin HEAD:publish-alpha
publish_packages:
runs-on: ubuntu-latest
needs: bump_versions
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/

- name: Install packages
run: yarn install

- name: Test
run: yarn test

- name: Configure Git user
run: |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
run_publish_packages:
runs-on: ubuntu-latest
needs: bump_versions
steps:
- name: Run Publish Packages action
uses: ./.github/workflows/publish.yml
- name: Trigger Publish Packages workflow
uses: actions/workflow-dispatch@v2
with:
publishFlag: 'alpha'
workflow: publish.yml
token: ${{ secrets.GITHUB_TOKEN }}
inputs: '{ "publishFlag": "alpha" }'


# Delay to wait for the publish to finish
- name: Delay for 2 minutes
run: sleep 120
Expand All @@ -75,7 +59,7 @@ jobs:
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.PAT }}
token: ${{ secrets.GITHUB_TOKEN }}
repository: 100mslive/100ms-links
event-type: alpha-publish

0 comments on commit 3aa9426

Please sign in to comment.