Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: improve alpha publish flow #2599

Merged
merged 2 commits into from
Feb 27, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
KaustubhKumar05 marked this conversation as resolved.
Show resolved Hide resolved
repository: 100mslive/100ms-links
event-type: alpha-publish

Loading