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

Staging PR merge workflow to push commit to nulib/dcapi-types #110

Merged
merged 1 commit into from
Feb 20, 2023

Conversation

kdid
Copy link
Contributor

@kdid kdid commented Feb 20, 2023

The dcapi-types workflow I'm envisioning is:

  • For a merge into dc-api-v2 deploy/staging branch that contains changes to data-types.yaml, we trigger a commit to the staging branch in the nulib/dcapi-types repo. If the front end wants to work with what's deployed on staging they can reference the package by branch directly. Since no one else has access to the staging environment, we are not going to publish the package at that point.
  • When there is a production deployment of nulib/dc-api-v2 (main branch that contains changes to data-types.yaml), that will trigger a PR into the dcapi-types package's main branch. (From there we will either have the PR auto merge (+ auto publish?), or it will be manually reviewed/merged + published. Haven't totally decided on that yet.)

This PR contains only the staging workflow (first part of ☝️)

And what do you know, I found a typo to correct in data-types.yaml to test the on merge workflow....

@kdid kdid requested a review from mbklein February 20, 2023 21:52
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git add .
git commit -m "nulib/dc-api-v2 commit: $GITHUB_SHA, package.json version: ${{ steps.package-version.outputs.current-version}}"
Copy link
Contributor

Choose a reason for hiding this comment

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

I like this for the commit message!

@kdid kdid force-pushed the 3527-staging-types-workflow branch from 0922b60 to 99493f5 Compare February 20, 2023 22:17
@kdid kdid temporarily deployed to test February 20, 2023 22:17 — with GitHub Actions Inactive
@kdid kdid merged commit a664dd9 into deploy/staging Feb 20, 2023
@kdid kdid deleted the 3527-staging-types-workflow branch February 20, 2023 22:22
@kdid kdid restored the 3527-staging-types-workflow branch February 20, 2023 22:22
@kdid kdid temporarily deployed to test February 20, 2023 22:22 — with GitHub Actions Inactive
@kdid kdid deleted the 3527-staging-types-workflow branch March 14, 2023 20:17
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