Skip to content
This repository was archived by the owner on Apr 13, 2023. It is now read-only.

Commit b46d688

Browse files
committed
chore: Add npm credential setup to GitHub workflow to allow for publishing.
1 parent effceec commit b46d688

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,18 @@ jobs:
3333
uses: actions/setup-node@v2
3434
with:
3535
node-version: 16.x
36-
- name: Bootstrap, build, and test
36+
- name: Prep, build, and test
3737
run: |
38+
git config user.email "${{github.event.pusher.email}}"
39+
git config user.name "${{github.event.pusher.name}}"
40+
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
3841
npx lerna bootstrap --no-ci
3942
npm run test
4043
4144
# If pushing on develop and we made it this far
4245
# then we should attempt to publish
4346
- name: Publish any versionable updates
4447
if: github.event_name == 'push'
45-
run: npx lerna publish
48+
run: |
49+
npx lerna publish --yes
50+
git push --follow-tags

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ package-lock.json
99
tsconfig.tsbuildinfo
1010
app
1111
lerna-debug.log
12+
.npmrc

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ This is a monorepo for miscellaneous Node packages that all revolve around the N
44

55
## Packages
66

7-
- [@bscotch/utility](./packages/utility/README.md) - A zero-dependency collection of utility functions for handling files, paths, strings, dates, and more in Node. It also includes a bunch of utility types for Typescript.
7+
- [@bscotch/utility](./packages/utility/README.md) - A zero-dependency collection of utility functions for handling files, paths, strings, dates, and more in Node. It also includes a bunch of utility types for Typescript.
8+
- [@bscotch/schema-builder](./packages/schema-builder/README.md) - An extension of [TypeBox](https://github.com/sinclairzx81/typebox) for building complex, self-contained JSON Schemas with full Typescript support. Includes validation via [ajv](https://ajv.js.org/).

0 commit comments

Comments
 (0)