Skip to content

Commit 6a51aa3

Browse files
Push workflows branch to npm (#6375)
* push workflows branch to npm * Update .github/workflows/prerelease-workflows.yml --------- Co-authored-by: Rahul Sethi <[email protected]>
1 parent 598c230 commit 6a51aa3

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Prerelease Workflows
2+
on:
3+
push:
4+
branches:
5+
- workflows
6+
7+
jobs:
8+
release:
9+
if: ${{ github.repository_owner == 'cloudflare' }}
10+
name: Release
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout Repo
15+
uses: actions/checkout@v4
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Install Dependencies
20+
uses: ./.github/actions/install-dependencies
21+
22+
- name: Build
23+
run: pnpm run build
24+
25+
- name: Check for errors
26+
run: pnpm run check
27+
env:
28+
NODE_OPTIONS: "--max_old_space_size=8192"
29+
30+
- name: Modify package.json version
31+
run: node .github/version-script.js
32+
33+
- name: Publish to NPM
34+
run: pnpm publish --tag workflows
35+
env:
36+
NODE_ENV: "production"
37+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
38+
working-directory: packages/wrangler

0 commit comments

Comments
 (0)