Skip to content

Commit

Permalink
Manual GitHub Release in CD (#1920)
Browse files Browse the repository at this point in the history
Co-authored-by: Mayank <[email protected]>
  • Loading branch information
r100-stack and mayank99 authored Mar 18, 2024
1 parent b4a4823 commit a0dfee3
Show file tree
Hide file tree
Showing 6 changed files with 533 additions and 11 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/changeset-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,10 @@ jobs:
GIT_COMMITTER_NAME: github-actions[bot]
GIT_COMMITTER_EMAIL: github-actions[bot]@users.noreply.github.com

- name: Publish to npm (if not already published)
- name: Publish to npm & GitHub (if not already published)
if: steps.changesets_files.outputs.exists != 'true'
run: |
pnpm release
git push origin --tags
env:
GITHUB_TOKEN: ${{ secrets.IMJS_ADMIN_GH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_PUBLISH_ITWIN }}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,18 @@
"approve:react": "pnpm --filter react-workshop approve",
"clean": "turbo run clean && rimraf node_modules",
"changeset": "npx -y @changesets/cli",
"release": "pnpm run build --filter=\"{./packages/*}...\" && pnpm changeset publish"
"release": "pnpm run build --filter=\"{./packages/*}...\" && pnpm node ./scripts/publish-packages.mjs"
},
"dependencies": {},
"devDependencies": {
"@itwin/itwinui-css": "workspace:*",
"@itwin/itwinui-variables": "workspace:*",
"chokidar-cli": "^3.0.0",
"concurrently": "^8.2.2",
"execa": "^8.0.1",
"husky": "^9.0.10",
"lint-staged": "^15.2.2",
"octokit": "^3.1.2",
"prettier": "~3.1.0",
"rimraf": "^5.0.5",
"serve": "^14.2.1",
Expand Down
Loading

0 comments on commit a0dfee3

Please sign in to comment.