Skip to content

Commit 79de9cb

Browse files
committed
feat: update publishing and add github workflow
1 parent 7dc15ac commit 79de9cb

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

.github/wokflows/publish-action.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: DotMH Linting Publish Actions
2+
run-name: "${{ github.actor }} - ${{ github.workflow }} - ${{ github.run_number }}"
3+
on:
4+
- push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
TestAndLint:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: pnpm/action-setup@v3
14+
with:
15+
version: "9"
16+
- name: Node
17+
uses: actions/setup-node@v4
18+
with:
19+
node-version: "20.14.0"
20+
cache: "pnpm"
21+
- run: pnpm install
22+
- name: publish
23+
run: pnpm workspace:publish

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "@dotmh/linting",
3-
"version": "0.1.0",
3+
"version": "1.0.0",
44
"description": "A Monorepo that shares linting configurations across DotMH projects",
55
"private": true,
66
"main": "index.js",
77
"type": "module",
88
"scripts": {
99
"test": "echo \"Error: no test specified\" && exit 1",
10-
"publish": "npm publish -ws",
10+
"workspace:publish": "pnpm publish -r",
1111
"prepare": "husky",
1212
"lint:commit": "commitlint --edit",
1313
"githook:commitMessage": "pnpm lint:commit"

0 commit comments

Comments
 (0)