diff --git a/.github/workflows/npm-publish-github-packages.yml b/.github/workflows/npm-publish-github-packages.yml index 2676653..43dc692 100644 --- a/.github/workflows/npm-publish-github-packages.yml +++ b/.github/workflows/npm-publish-github-packages.yml @@ -3,9 +3,13 @@ name: Node.js Package +# on: +# release: +# types: [created] on: - release: - types: [created] + push: + branches: + - main jobs: build: diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..ce9cbdd --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +@bcgov:registry=https://npm.pkg.github.com \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index c2ffa25..9d75349 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,21 +1,12 @@ { - "name": "nrs-common-types", - "version": "1.0.6", + "name": "@bcgov/nrs-ce-common-types", + "version": "1.0.7", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "nrs-common-types", - "version": "1.0.6", - "license": "ISC", - "dependencies": { - "nrs-common-types": "^1.0.5" - } - }, - "node_modules/nrs-common-types": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/nrs-common-types/-/nrs-common-types-1.0.5.tgz", - "integrity": "sha512-1lmMifF9Y74UL85+dDg+Nc104incV6hwn7fu1LArG6fELz1yzrnm1dakADtDaRts+p1L8FLQ2CO1O4YhNBXPHw==", + "name": "@bcgov/nrs-ce-common-types", + "version": "1.0.7", "license": "ISC" } } diff --git a/package.json b/package.json index 1186b50..db069c5 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "nrs-ce-common-types", + "name": "@bcgov/nrs-ce-common-types", "version": "1.0.7", "description": "Common set of types and functions to be used over NRS projects", "main": "dist/index.js", @@ -13,5 +13,8 @@ "author": "Team Wolverine", "license": "ISC", "dependencies": { + }, + "publishConfig": { + "@bcgov:registry": "https://npm.pkg.github.com" } }