Skip to content

Commit

Permalink
fix deploy preview
Browse files Browse the repository at this point in the history
  • Loading branch information
juliodialpad committed Oct 30, 2023
1 parent d18dac4 commit 1bb89d7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
run: pnpm install --frozen-lockfile

- name: Build library and docsite
run: npx nx run dialtone:build:docsite --args="--deploySubdir /deploy-previews/pr-${{github.event.pull_request.number}}/"
run: npx nx run dialtone:build-docs --args="--deploySubdir /deploy-previews/pr-${{github.event.pull_request.number}}/"

- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4.2.5
Expand Down
4 changes: 1 addition & 3 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"targetDefaults": {
"build": {
"cache": true,
"dependsOn": [
"^build"
]
"dependsOn": ["^build"]
},
"lint": {
"cache": true
Expand Down
2 changes: 1 addition & 1 deletion packages/dialtone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
"precss": "^4.0.0",
"prismjs": "^1.29.0",
"semantic-release": "^21.0.6",
"stylelint": "15.9.0",
"stylelint": "15.11.0",
"stylelint-config-rational-order": "^0.1.2",
"stylelint-config-recommended-less": "^1.0.4",
"stylelint-config-standard": "^33.0.0",
Expand Down
11 changes: 11 additions & 0 deletions packages/dialtone/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"release-local": {
"executor": "nx:run-commands",
"outputs": [],
"dependsOn": ["^build"],
"options": {
"command": "npx semantic-release-plus --no-ci --extends ./packages/dialtone/release-local.config.cjs",
"parallel": false
Expand All @@ -25,9 +26,19 @@
"parallel": false
}
},
"build-docs": {
"executor": "nx:run-script",
"dependsOn": ["^build"],
"outputs": [],
"options": {
"script": "build:docsite",
"parallel": false
}
},
"start": {
"executor": "nx:run-commands",
"outputs": [],
"dependsOn": ["^build"],
"options": {
"command": "npx nx run dialtone:start",
"parallel": false
Expand Down

0 comments on commit 1bb89d7

Please sign in to comment.