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

Update GitHub actions (versions / ergonomics). #172

Merged
merged 1 commit into from
Feb 29, 2024
Merged

Conversation

theengineear
Copy link
Collaborator

This change set bumps the referenced / reusable GitHub actions to their latest versions, bumps node versions, and enables reuse of a “test” wf.

@theengineear theengineear force-pushed the update-actions branch 2 times, most recently from 89ba106 to b44d9cc Compare February 29, 2024 17:17
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

In general — I’ve updated things to use clean install so that we install from package-lock.json for consistency.

- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20.x'
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Node version is bumped to 20.x in all these configuration files.

name: Publish
on:
release:
types: [published]
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated the release type trigger to published as that appears to be the current recommendation.

@@ -1,17 +1,16 @@
name: Push
on: [push]
# Test flow triggered by other workflows.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Also, I’ve added a general change to pull out our workflows into reusable chunks. The GitHub UI sort of rewards you with a better UX for doing this (e.g., better graphical representation of what’s happening).

@theengineear
Copy link
Collaborator Author

FYI @klebba — I’m just modernizing our GH actions stuff as we flesh out this ecosystem. I’m going to get this merged in and then will start testing the deployment flows.

on:
workflow_call:
inputs:
secrets:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Going to try and remove this — I believe that if we use secrets: inherit, you don’t need to explicitly declare inputs like that.

This change set bumps the referenced / reusable GitHub actions to their
latest versions, bumps node versions, and enables reuse of a “test” wf.
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@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.

Bumped all these as part of the node 16 >> 20 upgrades in GH actions.

@theengineear theengineear merged commit a5097f0 into main Feb 29, 2024
1 check passed
@theengineear theengineear deleted the update-actions branch February 29, 2024 17:37
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.

1 participant