diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7e56383..a875372 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -20,7 +20,7 @@ jobs: needs: - init - uses: milaboratory/github-ci/.github/workflows/node-simple.yaml@v4-beta + uses: milaboratory/github-ci/.github/workflows/node-simple.yaml@v4 with: app-name: Blast PL package app-name-slug: 'blast' @@ -35,15 +35,24 @@ jobs: test: false test-script-name: 'test' - publish-script-name: 'release' - + publish-to-public: true aws-login-enable: true gcp-login-enable: true + npmrc-config: | + { + "registries": { + "https://registry.npmjs.org/": { + "scopes": ["platforma-open"], + "tokenVar": "NPMJS_TOKEN" + } + } + } secrets: env: | { - "PL_REGISTRY_PLATFORMA_OPEN_UPLOAD_URL": ${{ toJSON(secrets.PL_REGISTRY_PLOPEN_UPLOAD_URL) }} + "PL_REGISTRY_PLATFORMA_OPEN_UPLOAD_URL": ${{ toJSON(secrets.PL_REGISTRY_PLOPEN_UPLOAD_URL) }}, + "NPMJS_TOKEN": ${{ toJSON(secrets.NPMJS_TOKEN) }} } AWS_ASSUME_ROLE: ${{ secrets.AWS_CI_IAM_MONOREPO_SIMPLE_ROLE }} diff --git a/package.json b/package.json index c0b53ba..624d796 100644 --- a/package.json +++ b/package.json @@ -4,11 +4,11 @@ "description": "Blast software package for Platforma Backend", "scripts": { "build": "true", + "pkg:build": "rm -rf dld && ./scripts/build.sh 2.16.0", + "pkg:publish": "./scripts/publish.sh 2.16.0", - "publish:packages": "./scripts/publish.sh 2.16.0", - "publish:descriptors": "pl-pkg publish descriptors", - "release": "npm run pkg:build && npm run publish:packages && npm run publish:descriptors" + "prepublishOnly": "npm run pkg:build && npm run pkg:publish" }, "files": [ "dist/"