-
Notifications
You must be signed in to change notification settings - Fork 32
ci: convert production workflows #3192
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
48f9ae1
robo start, need to review
dreamwasp 9ea1ea7
Merge branch 'main' into cass-GMT-287
dreamwasp 54c6644
add back cacheing
dreamwasp 4ff1579
Merge branch 'cass-GMT-287' of github.com:Codecademy/gamut into cass-…
dreamwasp 9a97cd9
more automerge to required checks
dreamwasp 44efeec
update summary
dreamwasp da23bb2
Merge branch 'main' into cass-GMT-287
dreamwasp 81ec370
pull
dreamwasp e8d3517
test passes
dreamwasp 4aed134
Merge branch 'main' into cass-GMT-287
dreamwasp 72f1244
jake fix
dreamwasp 0594990
finishing touches
dreamwasp 653bb46
capitalize Badge comment
dreamwasp dd7207a
fixed
dreamwasp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,15 +20,6 @@ jobs: | |
| runs-on: ubuntu-latest | ||
| if: github.ref != 'refs/heads/main' | ||
| steps: | ||
| - name: Wait for CI build | ||
| uses: fountainhead/[email protected] | ||
| id: wait-for-build | ||
| with: | ||
| token: ${{ secrets.ACTIONS_GITHUB_TOKEN }} | ||
| checkName: build-test | ||
| ref: ${{ github.event.pull_request.head.sha || github.sha }} | ||
| timeoutSeconds: 1200 | ||
| intervalSeconds: 30 | ||
| - name: automerge | ||
| uses: pascalgn/[email protected] | ||
| env: | ||
|
|
||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| name: Deploy Production Storybook | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| env: | ||
| NODE_OPTIONS: '--max_old_space_size=8196' | ||
| NX_CLOUD: false | ||
| IGNORE_COMMIT_MESSAGE: 'chore(release): publish' | ||
|
|
||
| permissions: | ||
| id-token: write | ||
| contents: write | ||
|
|
||
| concurrency: | ||
| group: deploy-production | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| deploy: | ||
| runs-on: ubuntu-22.04 | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| token: ${{ secrets.ACTIONS_GITHUB_TOKEN }} | ||
|
|
||
| - name: Skip build from automated commit | ||
| uses: ./.github/actions/skip-automated-commits | ||
| with: | ||
| ignore-commit-message: ${{ env.IGNORE_COMMIT_MESSAGE }} | ||
|
|
||
| - name: Setup and Build | ||
| uses: ./.github/actions/yarn | ||
|
|
||
| - name: Cache Nx | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: node_modules/.cache/nx | ||
| key: nx-${{ runner.os }}-${{ hashFiles('yarn.lock') }}-${{ github.ref_name }}-${{ github.run_id }} | ||
| restore-keys: | | ||
| nx-${{ runner.os }}-${{ hashFiles('yarn.lock') }}-${{ github.ref_name }}- | ||
| nx-${{ runner.os }}-${{ hashFiles('yarn.lock') }}- | ||
| nx-${{ runner.os }}- | ||
|
|
||
| - name: Cache webpack | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: | | ||
| node_modules/.cache | ||
| packages/styleguide/node_modules/.cache | ||
| key: webpack-${{ runner.os }}-${{ hashFiles('yarn.lock') }}-${{ github.ref_name }}-${{ github.sha }} | ||
| restore-keys: | | ||
| webpack-${{ runner.os }}-${{ hashFiles('yarn.lock') }}-${{ github.ref_name }}- | ||
| webpack-${{ runner.os }}-${{ hashFiles('yarn.lock') }}- | ||
|
|
||
| - name: Set git user | ||
| uses: ./.github/actions/set-git-user | ||
|
|
||
| - name: Build All Packages | ||
| run: yarn build | ||
|
|
||
| - name: Build Storybook | ||
| run: yarn nx run styleguide:build-storybook | ||
|
|
||
| - name: Deploy to GitHub Pages | ||
| run: yarn deploy | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.ACTIONS_GITHUB_TOKEN }} |
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| name: Publish Production | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| env: | ||
| NODE_VERSION: '22.13.1' | ||
| NODE_OPTIONS: '--max_old_space_size=8196' | ||
| NX_CLOUD: false | ||
| IGNORE_COMMIT_MESSAGE: 'chore(release): publish' | ||
|
|
||
| permissions: | ||
| id-token: write | ||
| contents: write | ||
| pull-requests: write | ||
| issues: write | ||
|
|
||
| concurrency: | ||
| group: publish-production | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| publish: | ||
| runs-on: ubuntu-22.04 | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| token: ${{ secrets.ACTIONS_GITHUB_TOKEN }} | ||
|
|
||
| - name: Skip build from automated commit | ||
| uses: ./.github/actions/skip-automated-commits | ||
| with: | ||
| ignore-commit-message: ${{ env.IGNORE_COMMIT_MESSAGE }} | ||
|
|
||
| - name: Setup and Build | ||
| uses: ./.github/actions/yarn | ||
|
|
||
| - name: Cache Nx | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: node_modules/.cache/nx | ||
| key: nx-${{ runner.os }}-${{ hashFiles('yarn.lock') }}-${{ github.ref_name }}-${{ github.run_id }} | ||
| restore-keys: | | ||
| nx-${{ runner.os }}-${{ hashFiles('yarn.lock') }}-${{ github.ref_name }}- | ||
| nx-${{ runner.os }}-${{ hashFiles('yarn.lock') }}- | ||
| nx-${{ runner.os }}- | ||
|
|
||
| - name: Set git user | ||
| uses: ./.github/actions/set-git-user | ||
|
|
||
| - name: Set npm token | ||
| uses: ./.github/actions/set-npm-token | ||
| with: | ||
| token-secret: ${{ secrets.NODE_AUTH_TOKEN }} | ||
|
|
||
| - name: Build All Packages | ||
| run: yarn build | ||
|
|
||
| - name: Lerna Publish | ||
| run: yarn lerna publish --yes --exact --conventional-commits --changelog-preset conventionalcommits --include-merged-tags --create-release=github | ||
| env: | ||
| GH_TOKEN: ${{ secrets.ACTIONS_GITHUB_TOKEN }} | ||
| NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }} |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed the required checks to the following, so shouldn't need this anymore
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
& pr-title