Skip to content

Commit

Permalink
Merge pull request #63 from goosewobbler/sm/github-release
Browse files Browse the repository at this point in the history
ci: set `prereleaseIdentifier`
  • Loading branch information
goosewobbler authored Nov 26, 2024
2 parents 81b7847 + 54c6c6f commit fac8899
Show file tree
Hide file tree
Showing 8 changed files with 841 additions and 374 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ on:
- preminor
- premajor
- prerelease
npmTag:
description: 'NPM tag. Defaults to "next".'
prereleaseIdentifier:
description: 'Prerelease Identifier. Used for NPM tag and version string. Defaults to "next", e.g. "1.0.0-next.0".'
required: true
default: 'next'

Expand Down Expand Up @@ -54,12 +54,17 @@ jobs:
run: pnpm install --frozen-lockfile
- name: Build
run: pnpm build
- name: Update Turbo Version config
uses: restackio/[email protected]
with:
file: version.config.json
fields: '{"prereleaseIdentifier": "${{inputs.prereleaseIdentifier}}"}'
- name: Create Release and Tags
shell: bash
run: pnpm turbo-version -b ${{inputs.prereleaseVersion}}
- name: Publish to NPM
shell: bash
run: pnpm publish -r --tag ${{inputs.npmTag}}
run: pnpm publish -r --tag ${{inputs.prereleaseIdentifier}}
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Push Tags and Commits
Expand Down
6 changes: 3 additions & 3 deletions apps/example-reducers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@
"zutron": "workspace:*"
},
"devDependencies": {
"@types/node": "^22.9.1",
"@types/node": "^22.10.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.3",
"@vitejs/plugin-react": "^4.3.4",
"electron": "^33.2.0",
"electron-builder": "^25.1.8",
"electron-vite": "^2.3.0",
"typescript": "^5.6.3",
"typescript": "^5.7.2",
"vite": "^5.4.11",
"wdio-electron-service": "^7.3.1"
}
Expand Down
8 changes: 4 additions & 4 deletions apps/example-separate-handlers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
"zutron": "workspace:*"
},
"devDependencies": {
"@types/node": "^22.9.1",
"@types/node": "^22.10.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.3",
"@vitejs/plugin-react": "^4.3.4",
"electron": "^33.2.0",
"electron-builder": "^25.1.8",
"electron-vite": "^2.3.0",
"typescript": "^5.6.3",
"vite": "^5.4.11",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"wdio-electron-service": "^7.3.1"
}
}
8 changes: 4 additions & 4 deletions apps/example-store-handlers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
"zutron": "workspace:*"
},
"devDependencies": {
"@types/node": "^22.9.1",
"@types/node": "^22.10.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.3",
"@vitejs/plugin-react": "^4.3.4",
"electron": "^33.2.0",
"electron-builder": "^25.1.8",
"electron-vite": "^2.3.0",
"typescript": "^5.6.3",
"vite": "^5.4.11",
"typescript": "^5.7.2",
"vite": "^6.0.0",
"wdio-electron-service": "^7.3.1"
}
}
14 changes: 7 additions & 7 deletions e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@
},
"dependencies": {
"@testing-library/webdriverio": "^3.2.1",
"@wdio/cli": "^9.2.14",
"@wdio/cli": "^9.4.0",
"@wdio/electron-utils": "^7.3.1",
"@wdio/globals": "^9.2.14",
"@wdio/local-runner": "^9.2.15",
"@wdio/globals": "^9.4.0",
"@wdio/local-runner": "^9.4.0",
"@wdio/mocha-framework": "^9.2.8",
"cross-env": "^7.0.3",
"tsx": "^4.19.2",
"wdio-electron-service": "^7.3.1",
"webdriverio": "^9.2.14",
"webdriverio": "^9.4.0",
"xvfb-maybe": "^0.2.1"
},
"devDependencies": {
"@types/mocha": "^10.0.9",
"@types/node": "^22.9.1",
"@types/mocha": "^10.0.10",
"@types/node": "^22.10.0",
"electron": "^33.2.0",
"read-package-up": "^11.0.0",
"typescript": "^5.6.3"
"typescript": "^5.7.2"
}
}
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@
"state-management"
],
"devDependencies": {
"@turbo-version/version": "^0.6.1",
"@turbo-version/version": "^0.7.0",
"husky": "^9.1.7",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"prettier": "^3.4.1",
"shelljs": "^0.8.5",
"tsx": "^4.19.2",
"turbo": "^2.3.0"
"turbo": "^2.3.2"
},
"lint-staged": {
"**/*.{yml,json,md,ts,tsx,js}": [
"prettier --write"
]
},
"packageManager": "pnpm@9.13.1+sha512.5ac37545851c55ec58521b6c285db6f848f93ca70889beb4145f5b40fe234e4ea4faee4dad12ac5c139e494374c65d9c3a6ec9a25954378fa286a250e68d2f20"
"packageManager": "pnpm@9.14.2+sha512.6e2baf77d06b9362294152c851c4f278ede37ab1eba3a55fda317a4a17b209f4dbb973fb250a77abc463a341fcb1f17f17cfa24091c4eb319cda0d9b84278387"
}
8 changes: 4 additions & 4 deletions packages/zutron/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@types/shelljs": "^0.8.15",
"@vitest/coverage-v8": "^2.1.5",
"@vitest/coverage-v8": "^2.1.6",
"jsdom": "^25.0.1",
"react": "^18.3.1",
"rollup": "^4.27.3",
"rollup": "^4.27.4",
"shelljs": "^0.8.5",
"tsx": "^4.19.2",
"typescript": "^5.6.3",
"vitest": "^2.1.5"
"typescript": "^5.7.2",
"vitest": "^2.1.6"
},
"files": [
"dist/*",
Expand Down
Loading

0 comments on commit fac8899

Please sign in to comment.