-
Notifications
You must be signed in to change notification settings - Fork 2
Added tentative build script for GitHub #6
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Whit Waldo <[email protected]>
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.
Some suggested changes
node-version: ${{ matrix.node_version }} | ||
|
||
- name: Install dependencies | ||
run: npm install |
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.
Use package-lock strictly
run: npm install | |
run: npm ci |
|
||
- name: Run unit tests | ||
id: tests | ||
run: npm run test |
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.
run: npm run test | |
run: npm test |
run: npm install | ||
|
||
- name: Build package (install dependencies, lint, prettier, build) | ||
run: npm run build |
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.
Strictly speaking npm run build
isn't needed or used since ts-jest is running tests
But running lint here would be a good idea
registry-url: "https://registry.npmjs.org" | ||
|
||
- name: Install dependencies | ||
run: npm install |
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.
run: npm install | |
run: npm ci |
run: npm install | ||
|
||
- name: Build package | ||
run: npm run build |
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.
The prepack script does this build automatically when publish runs
run: npm run build |
run: npm run build | ||
|
||
- name: Publish to npm (@dapr/testcontainers-node) | ||
run: npm publish dist/ --access public |
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.
The additional args are specified in package.json (see files and access)
run: npm publish dist/ --access public | |
run: npm publish |
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5.4.2 | ||
|
||
publish: | ||
needs: build |
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.
Maybe name that job "test" since it doesn't build but it tests
Added build and publish workflows on the build.yml script