@casekit/orm 0.0.1-alpha.0 → 0.0.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,7 @@ runs:
12
12
  with:
13
13
  node-version: 21
14
14
  cache: pnpm
15
+ registry-url: "https://registry.npmjs.org"
15
16
 
16
17
  - name: Install dependencies
17
18
  run: pnpm install
@@ -74,6 +74,29 @@ jobs:
74
74
  - name: Prettier
75
75
  run: pnpm prettier
76
76
 
77
+ publish:
78
+ name: "🔥 Publish"
79
+ needs: [test, typecheck, lint, prettier]
80
+ runs-on: ubuntu-latest
81
+ if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
82
+ steps:
83
+ - uses: actions/checkout@v4
84
+ - name: Set up Git config
85
+ run: |
86
+ git config user.name "$(git log -n 1 --pretty=format:%an)"
87
+ git config user.email "$(git log -n 1 --pretty=format:%ae)"
88
+ - uses: ./.github/actions/ci-setup
89
+ - name: Build
90
+ run: pnpm build
91
+ - name: Version
92
+ run: pnpm version prerelease --preid=alpha
93
+ - name: Publish
94
+ run: pnpm publish
95
+ env:
96
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
97
+ - name: Push
98
+ run: git push
99
+
77
100
  dependabot:
78
101
  name: "🤖 Dependabot"
79
102
  needs: [test, typecheck, lint, prettier]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@casekit/orm",
3
- "version": "0.0.1-alpha.0",
3
+ "version": "0.0.1-alpha.1",
4
4
  "description": "A simple ORM",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -50,7 +50,7 @@
50
50
  "lint": "eslint --ignore-path .gitignore --cache --cache-location ./node_modules/.cache/eslint .",
51
51
  "prettier": "prettier -c src",
52
52
  "prettier:write": "prettier -w src",
53
- "release": "pnpm build && pnpm version --prerelease --preid=snapshot && pnpm publish --access private",
53
+ "release": "pnpm build && pnpm version --prerelease --preid=alpha && pnpm publish",
54
54
  "test": "vitest --typecheck",
55
55
  "test:coverage": "vitest --typecheck --coverage",
56
56
  "typecheck": "tsc --noEmit"