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

Add version info based on commit hash. #16

Merged

Conversation

brettski
Copy link
Collaborator

Sentry will tie to this. New eslint setting auto-added[ch2336]

@brettski
Copy link
Collaborator Author

An approach on adding version to the api pieces.

@@ -13,6 +13,10 @@ import { express as voyagerMiddleware } from 'graphql-voyager/middleware';
import apolloServer from './graphql';
import expressLoggingOptions from './expressLogOptions';

const { version } = require('../package.json');
Copy link
Member

Choose a reason for hiding this comment

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

interesting approach. while legit, is that really legit or are there some downstream node/npm circular issues? I honestly have no clue.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

None that I have run into in the past. package.json is just a file, and the goal is to have a single place for version info

@@ -51,7 +51,9 @@ jobs:
with:
name: tc-api
- name: write .env file
run: echo ${{ secrets.ENV_FILE_PROD }} | base64 -d > tc-api/.env
run: |
Copy link
Member

Choose a reason for hiding this comment

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

check out https://github.com/lerna/lerna. this might be a package we can use to help with the version numbers. I see it used a lot across open source projects.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Is your thought with lerna to put all the api's in one repo and configure as packages with lerna? That's a lot of change

"peacock.lightForegroundColor": "#000"
"peacock.lightForegroundColor": "#000",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
Copy link
Member

Choose a reason for hiding this comment

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

check this out.. microsoft/vscode#87096 mind you we already have formatOnSave, now I have no clue what we should be using.

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 there was a message in vscode that said this is the . new place to do this. The old setting is underlined as deprecated.

@theClarkSell theClarkSell added the enhancement New feature or request label Dec 16, 2019
@brettski brettski merged commit c4f0eeb into master Dec 17, 2019
@brettski brettski deleted the brettski/ch2336/add-release-information-to-sentry-io-when branch December 17, 2019 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants