Skip to content

Commit

Permalink
Merge pull request #3 from pierissimo/chore/npm-publish
Browse files Browse the repository at this point in the history
chore: npm publish
  • Loading branch information
pierissimo authored Mar 13, 2023
2 parents c11ae0f + d5434de commit 4502039
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 30 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish Package to npmjs
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
scope: '@pmaltese'
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,5 @@ dist

# TernJS port file
.tern-port

.idea/
46 changes: 23 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prisma-schema-dsl",
"version": "2.0.7",
"name": "@pmaltese/prisma-schema-dsl",
"version": "2.0.8",
"description": "JavaScript interface for Prisma Schema DSL",
"main": "dist/index.js",
"scripts": {
Expand Down Expand Up @@ -32,7 +32,7 @@
"@types/jest": "^26.0.19",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"prisma-schema-dsl-types": "^1.0.8",
"@pmaltese/prisma-schema-dsl-types": "^1.0.9",
"ts-jest": "^26.4.4",
"ts-toolbelt": "^9.6.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/builders.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ScalarType } from "prisma-schema-dsl-types";
import { ScalarType } from "@pmaltese/prisma-schema-dsl-types";
import {
createScalarField,
createObjectField,
Expand Down
2 changes: 1 addition & 1 deletion src/builders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
Enum,
ReferentialActions,
isCallExpression,
} from "prisma-schema-dsl-types";
} from "@pmaltese/prisma-schema-dsl-types";

const NAME_REGEXP = /[A-Za-z][A-Za-z0-9_]*/;
export const OPTIONAL_LIST_ERROR_MESSAGE =
Expand Down
2 changes: 1 addition & 1 deletion src/print.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import {
CUID,
NOW,
Enum,
} from "prisma-schema-dsl-types";
} from "@pmaltese/prisma-schema-dsl-types";

const EXAMPLE_DOCUMENTATION = "Example Documentation";
const EXAMPLE_ENUM_NAME = "ExampleEnumName";
Expand Down
2 changes: 1 addition & 1 deletion src/print.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
Enum,
DataSourceProvider,
ReferentialActions,
} from "prisma-schema-dsl-types";
} from "@pmaltese/prisma-schema-dsl-types";
import { formatSchema } from "@prisma/internals";

type Relation = {
Expand Down

0 comments on commit 4502039

Please sign in to comment.