Skip to content

Commit d28d85a

Browse files
committed
ci: seperate versioning and publish
1 parent 42d3519 commit d28d85a

File tree

1 file changed

+37
-11
lines changed

1 file changed

+37
-11
lines changed

.github/workflows/release.yml

Lines changed: 37 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ permissions:
1616
pull-requests: write
1717

1818
jobs:
19-
release:
20-
name: Release
19+
versioning:
20+
name: Versioning
2121
runs-on: ubuntu-latest
2222
steps:
2323
- name: Checkout Repository (deep)
@@ -39,18 +39,9 @@ jobs:
3939
with:
4040
bun-version: 1
4141

42-
- name: Authenticate NPM
43-
run: npm config set "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}"
44-
4542
- name: Install
4643
run: pnpm install --frozen-lockfile
4744

48-
- name: Build packages
49-
run: pnpm nx run-many -t build --projects=@knuckles/*
50-
51-
- name: Publish packages
52-
run: pnpm nx release publish
53-
5445
- name: Setup Git User
5546
run: node .github/scripts/setup-git-user.js
5647

@@ -78,3 +69,38 @@ jobs:
7869
GITHUB_REPO: ${{ github.repository }}
7970
GITHUB_HEAD_BRANCH: "automated-versioning"
8071
GITHUB_BASE_BRANCH: "main"
72+
73+
publish:
74+
name: Publish
75+
runs-on: ubuntu-latest
76+
steps:
77+
- name: Checkout Repository (deep)
78+
uses: actions/checkout@v4
79+
with:
80+
fetch-depth: 0
81+
82+
- uses: pnpm/action-setup@v3
83+
with:
84+
version: 9
85+
86+
- name: Setup Node.js 20.x
87+
uses: actions/setup-node@v3
88+
with:
89+
node-version: 20.x
90+
91+
- name: Setup Bun 1.x
92+
uses: oven-sh/setup-bun@v1
93+
with:
94+
bun-version: 1
95+
96+
- name: Authenticate NPM
97+
run: npm config set "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}"
98+
99+
- name: Install
100+
run: pnpm install --frozen-lockfile
101+
102+
- name: Build packages
103+
run: pnpm nx run-many -t build --projects=@knuckles/*
104+
105+
- name: Publish packages
106+
run: pnpm nx release publish

0 commit comments

Comments
 (0)