-
-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new: Setup yarn release flow for packages. (#86)
* Update types. * Setup workflow. * Add script. * Add bump. * Move files. * Stuff. * Start on script. * Add diffing. * Add git support. * Release - @moonrepo/[email protected] - @moonrepo/[email protected] - @moonrepo/[email protected] - @moonrepo/[email protected] - @moonrepo/[email protected] - @moonrepo/[email protected] * Add bash scripts. * Add release flow. * Fix build. * Test flow. * Fix paths. * Comment out.
- Loading branch information
Showing
26 changed files
with
1,760 additions
and
907 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
name: Node | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
jobs: | ||
pack: | ||
name: Pack | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: yarn | ||
- run: yarn install --immutable | ||
- run: yarn run pack | ||
- run: yarn config get cacheFolder | ||
- run: yarn run build | ||
version: | ||
name: Version | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: yarn | ||
- run: yarn version check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
# Release packages when a tag is created | ||
tags: | ||
- '@moonrepo/*' | ||
|
||
jobs: | ||
publish: | ||
name: Publish | ||
runs-on: ubuntu-latest | ||
env: | ||
NPM_CHANNEL: latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: yarn | ||
check-latest: true | ||
node-version: 16 | ||
- name: Install dependencies | ||
run: yarn install | ||
- name: Build packages | ||
run: yarn run build | ||
- name: Publish npm packages | ||
run: bash ./scripts/release/publishPackages.sh | ||
shell: bash | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,8 @@ tasks: | |
outputs: | ||
- 'dts' | ||
- 'mjs' | ||
env: | ||
NODE_ENV: production | ||
|
||
format: | ||
command: 'prettier' | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,12 @@ | |
"private": true, | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"build": "packemon build --addEngines --addExports", | ||
"pack": "NODE_ENV=production yarn run packemon pack --addEngines --declaration=standard", | ||
"format": "prettier --write ./packages", | ||
"test": "jest --passWithNoTests", | ||
"lint": "eslint --cache --color --fix --ext .ts,.tsx,.mjs ./packages ./scripts", | ||
"type": "tsc --build", | ||
"cli": "target/debug/moon" | ||
"version:apply": "node ./scripts/version/applyAndTagVersions.mjs", | ||
"version:bump": "yarn version check --interactive", | ||
"version:bump:bin": "bash ./scripts/version/bumpBinaryVersions.sh", | ||
"build": "NODE_ENV=production packemon pack --addEngines --addExports --declaration=standard", | ||
"type": "target/debug/moon --logLevel trace run :typecheck", | ||
"moon": "target/debug/moon --logLevel trace" | ||
}, | ||
"workspaces": [ | ||
"packages/*" | ||
|
@@ -19,15 +18,15 @@ | |
}, | ||
"devDependencies": { | ||
"@moonrepo/cli": "workspace:*", | ||
"@types/node": "^17.0.15", | ||
"eslint": "^8.8.0", | ||
"eslint-config-beemo": "^1.2.2", | ||
"jest": "^27.4.7", | ||
"jest-preset-beemo": "^1.1.5", | ||
"packemon": "^1.11.1", | ||
"prettier": "^2.5.1", | ||
"@types/node": "^17.0.24", | ||
"eslint": "^8.13.0", | ||
"eslint-config-beemo": "^1.2.8", | ||
"jest": "^27.5.1", | ||
"jest-preset-beemo": "^1.1.7", | ||
"packemon": "^1.15.0", | ||
"prettier": "^2.6.2", | ||
"prettier-config-beemo": "^1.0.1", | ||
"tsconfig-beemo": "^1.0.1", | ||
"typescript": "^4.5.5" | ||
"typescript": "^4.6.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,45 @@ | ||
import { PackageStructure, Path } from '@boost/common'; | ||
import { Path } from '@boost/common'; | ||
|
||
export interface TsConfigStructure { | ||
compilerOptions?: Record<string, unknown>; | ||
exclude?: string[]; | ||
extends?: string; | ||
files?: string[]; | ||
include?: string[]; | ||
references?: { path: string }[]; | ||
export interface FileGroup { | ||
files: string; | ||
id: string; | ||
} | ||
|
||
// Keep in sync with crates/project/src/task.rs | ||
export type TaskMergeStrategy = 'append' | 'prepend' | 'replace'; | ||
|
||
export interface TaskOptions { | ||
mergeArgs: TaskMergeStrategy; | ||
mergeDeps: TaskMergeStrategy; | ||
mergeEnv: TaskMergeStrategy; | ||
mergeInputs: TaskMergeStrategy; | ||
mergeOutputs: TaskMergeStrategy; | ||
retryCount: number; | ||
runInCI: boolean; | ||
runFromWorkspaceRoot: boolean; | ||
} | ||
|
||
export interface Task { | ||
args: string[]; | ||
command: string; | ||
deps: string[]; | ||
env: Record<string, string>; | ||
inputs: string[]; | ||
inputGlobs: string[]; | ||
inputPaths: string[]; | ||
options: TaskOptions; | ||
outputs: string[]; | ||
outputPaths: string[]; | ||
target: string; | ||
type: 'node' | 'system'; | ||
} | ||
|
||
// Keep in sync with crates/project/src/project.rs | ||
export interface Project { | ||
config: object; | ||
fileGroups: Record<string, FileGroup>; | ||
id: string; | ||
package_json: PackageStructure | null; | ||
root: Path; | ||
source: string; | ||
tsconfig_json: TsConfigStructure | null; | ||
tasks: Record<string, Task>; | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.