Skip to content

Commit

Permalink
feat: automated releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Wroud committed Sep 15, 2024
1 parent d12265c commit 5b14fdb
Show file tree
Hide file tree
Showing 48 changed files with 892 additions and 1,836 deletions.
32 changes: 31 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,40 @@ jobs:
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Release
run: |
yarn workspaces foreach -A --topological-dev --no-private run ci:release
git commit -m "chore: release"
- name: Tag
run: |
yarn workspaces foreach -A --topological-dev --no-private run ci:git-tag
git push --follow-tags
publish-github:
needs: release
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: "lts/*"
cache: "yarn"

- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: build-artifacts
run-id: ${{ inputs.build-run-id }}

- run: yarn install --immutable

- name: Release github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
run: yarn workspaces foreach -A --topological-dev --no-private run ci:prepublish
run: yarn workspaces foreach -A --topological-dev --no-private run ci:release-github

publish-npm:
needs: release
Expand Down
3 changes: 0 additions & 3 deletions packages/_aggregate/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@
{
"path": "../semver-bump"
},
{
"path": "../ci-github-release"
},
{
"path": "../conventional-commits-changelog"
},
Expand Down
29 changes: 0 additions & 29 deletions packages/ci-github-release/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions packages/ci-github-release/src/IAuthOptions.ts

This file was deleted.

6 changes: 0 additions & 6 deletions packages/ci-github-release/src/git-semver-tags.d.ts

This file was deleted.

126 changes: 0 additions & 126 deletions packages/ci-github-release/src/github-release.ts

This file was deleted.

6 changes: 0 additions & 6 deletions packages/ci-github-release/src/semverRegex.ts

This file was deleted.

30 changes: 0 additions & 30 deletions packages/ci-github-release/src/transform.ts

This file was deleted.

50 changes: 31 additions & 19 deletions packages/ci/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,40 @@
"private": true,
"type": "module",
"packageManager": "[email protected]",
"bin": "./lib/cli.js",
"scripts": {
"ci:prepublish": "",
"test": "tests-runner",
"test:ci": "CI=true yarn run test",
"build": "tsc -b",
"watch:tsc": "tsc -b -w",
"dev": "concurrently \"npm:watch:*\"",
"clear": "rimraf ./lib"
},
"dependencies": {
"@octokit/auth-action": "^5",
"@octokit/rest": "^21",
"@wroud/conventional-commits-bump": "workspace:*",
"@wroud/conventional-commits-changelog": "workspace:*",
"@wroud/conventional-commits-parser": "workspace:*",
"@wroud/git": "workspace:*",
"@wroud/github": "workspace:*",
"@wroud/tests-runner": "workspace:*",
"execa": "^9",
"semver": "^7",
"tempy": "^3",
"yargs": "^17"
},
"devDependencies": {
"@conventional-changelog/git-client": "^1",
"@tsconfig/node20": "^20",
"@types/conventional-changelog": "^3",
"@types/conventional-changelog-core": "^4",
"@types/conventional-changelog-writer": "^4",
"@types/conventional-commits-parser": "^5",
"@types/gulp": "^4",
"@types/node": "^20",
"@types/semver": "^7",
"@types/yargs": "^17",
"@vitest/coverage-v8": "^2",
"@wroud/tsconfig": "workspace:*",
"typescript": "^5"
},
"exports": {
"./gulp": "./lib/gulp/index.js"
},
"dependencies": {
"@wroud/ci-github-release": "workspace:^0",
"@wroud/semver-bump": "workspace:^0",
"conventional-changelog": "^6",
"conventional-changelog-conventionalcommits": "^8",
"execa": "^9",
"gulp": "^5",
"tempy": "^3"
"concurrently": "^8",
"rimraf": "^6",
"typescript": "^5",
"vitest": "^2"
}
}
Loading

0 comments on commit 5b14fdb

Please sign in to comment.