Skip to content

Commit

Permalink
Merge pull request #2 from platforma-open/release-to-public-npm
Browse files Browse the repository at this point in the history
upload npm packages to default public npm registry
  • Loading branch information
mike-ainsel authored Oct 10, 2024
2 parents 77e3943 + fc0aff3 commit 11d91d4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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 }}
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/"
Expand Down

0 comments on commit 11d91d4

Please sign in to comment.