diff --git a/.editorconfig b/.editorconfig index 1f18745..f86523c 100644 --- a/.editorconfig +++ b/.editorconfig @@ -4,3 +4,6 @@ indent_size = 2 indent_style = tab insert_final_newline = true trim_trailing_whitespace = true + +[*.yml] +indent_style = space diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..76baa09 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,49 @@ +name: CI +run-name: ${{ github.actor }} is testing out +on: + workflow_dispatch: + push: + branches: + - main + - dev + - "beachball" + paths-ignore: + - "**.md" + pull_request: + branches: + - main + - dev + paths-ignore: + - "**.md" + +jobs: + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - name: Setup pnpm + uses: pnpm/action-setup@v2 + + - uses: actions/setup-node@v3 + with: + cache: "pnpm" + node-version: "18" + + - name: Enable corepack + run: corepack enable + + - name: Install dependencies + run: pnpm install + + - name: Lint + run: pnpm run lint + + - name: Test + run: pnpm run test + + - name: Release + run: pnpm run release + if: github.event_name == 'workflow_dispatch' + env: + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index e9954fe..1a13584 100644 --- a/package.json +++ b/package.json @@ -8,8 +8,10 @@ "scripts": { "prepare": "husky install", "check": "beachball check", + "release": "beachball publish -y -m 'chore(release): applying package updates'", "change": "beachball change", - "release": "beachball publish -m 'chore(release): applying package updates'" + "lint": "pnpm -C packages/ts-nameof-proxy run lint", + "test": "pnpm -C packages/ts-nameof-proxy run test" }, "devDependencies": { "@commitlint/cli": "^17.0.3", diff --git a/packages/ts-nameof-proxy/.npmrc b/packages/ts-nameof-proxy/.npmrc new file mode 100644 index 0000000..5f0fc3f --- /dev/null +++ b/packages/ts-nameof-proxy/.npmrc @@ -0,0 +1,3 @@ +//registry.npmjs.org/:_authToken=${NPM_TOKEN} +registry=https://registry.npmjs.org/ +always-auth=true