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

Style dictionary build workflow 3 #30

Merged
merged 28 commits into from
Jun 30, 2022

Conversation

alexandra-lim
Copy link
Collaborator

@alexandra-lim alexandra-lim commented Jun 28, 2022

Apparently third time's the charm!

This MR combines the two existing workflows into one, and sets up each action as individual jobs instead. We're doing this because you can watch one workflow go through its jobs as opposed to switching between two workflows to check (you'll see this in the UI of the successful run below). Cath and I decided that it was worth running this workflow regardless of whether or not the change was made only to the tokens.json file, or any of the two config files (config.json and build.js).

Check out a successful run here

commit_message: Transformed tokens

build_style_dictionary:
needs: transform_tokens
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This job won't run unless the transform_tokens job is successful

@@ -26,12 +21,32 @@ jobs:
node-version: "14"
- name: Install Node Dependencies
run: npm install
- name: Run token-transformer
- name: Pull any branch changes
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doing this in both jobs since we've run into issues where the job errors out in the commit step since it's behind the origin branch

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, so this basically re-bases the branch with origin, as there was merging errors?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I ran into that issue in this run: https://github.com/Fullscript/aviary-tokens/runs/7115843713?check_suite_focus=true

So I figured just in case it happens again we could have this as a failsafe

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gotta do this repetitive work since each job uses a new runner

Copy link
Contributor

@CCAyl CCAyl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a work of art

Copy link
Collaborator

@iryanclarke iryanclarke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mastahpiece!

@alexandra-lim alexandra-lim merged commit 0668c0d into main Jun 30, 2022
@iryanclarke iryanclarke deleted the style-dictionary-build-workflow-3 branch July 4, 2022 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants