Skip to content

Commit

Permalink
publish packages
Browse files Browse the repository at this point in the history
  • Loading branch information
dharmesh-hemaram committed Apr 30, 2024
1 parent c521d5d commit 66a2cff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 28 deletions.
34 changes: 8 additions & 26 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com
scope: ${{github.repository_owner}}
cache: 'npm'
- run: npm ci
- name: build
Expand All @@ -65,6 +67,12 @@ jobs:
API_SECRET: ${{vars.API_SECRET}}
MEASUREMENT_ID: ${{vars.MEASUREMENT_ID}}
SENTRY_AUTH_TOKEN: ${{vars.SENTRY_AUTH_TOKEN}}
- name: Publish Packages
if: ${{ inputs.publish_packages }}
run: |
nx publish core-common --ver=0.0.0
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: bundle
run: |
mkdir bundle
Expand All @@ -78,32 +86,6 @@ jobs:
name: nx-main-artifacts
path: bundle/*

publish-packages:
if: ${{ inputs.publish_packages }}
name: Publish Packages
needs: [main]
runs-on: ubuntu-latest
environment: ${{inputs.environment}}
permissions:
contents: read
packages: write
steps:
- uses: actions/download-artifact@v4
with:
name: nx-main-artifacts
- uses: actions/setup-node@v3
with:
always-auth: true
node-version: 20
registry-url: https://npm.pkg.github.com
scope: '@dhruv-techapps'
cache: 'npm'
- name: Publish Packages
run: |
nx run-many -t=publish --ver=0.0.0
env:
NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}

extension:
if: ${{ inputs.upload_extension }}
name: Upload Extension
Expand Down
3 changes: 1 addition & 2 deletions libs/core/common/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
}
},
"publish": {
"command": "node tools/scripts/publish.mjs core-common {args.ver} {args.tag}",
"dependsOn": ["build"]
"command": "node tools/scripts/publish.mjs core-common {args.ver} {args.tag}"
},
"lint": {
"executor": "@nx/eslint:lint",
Expand Down

0 comments on commit 66a2cff

Please sign in to comment.