Skip to content

Commit

Permalink
ci: release using beachball
Browse files Browse the repository at this point in the history
  • Loading branch information
PinkChampagne17 committed Sep 17, 2023
1 parent fcb3ca0 commit b032508
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ indent_size = 2
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true

[*.yml]
indent_style = space
49 changes: 49 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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 }}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions packages/ts-nameof-proxy/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
registry=https://registry.npmjs.org/
always-auth=true

0 comments on commit b032508

Please sign in to comment.