Skip to content

Commit 2dc1c31

Browse files
committed
workflow: upload-built-packages
1 parent 85ee76f commit 2dc1c31

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/publish-commit.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
name: publish-commit
1+
# upload built packages as artifacts for faster ecosystem-ci
2+
name: upload-built-packages
23

34
on:
45
workflow_run:
56
workflows: ['ci']
6-
branches: [main, minor, test-publish]
7+
branches: [main, minor]
78
types:
89
- completed
910

@@ -25,15 +26,17 @@ jobs:
2526
uses: actions/setup-node@v4
2627
with:
2728
node-version-file: '.node-version'
28-
registry-url: 'https://npm.pkg.github.com'
29+
registry-url: 'https://registry.npmjs.org'
2930
cache: 'pnpm'
3031

3132
- name: Install deps
3233
run: pnpm install
3334

34-
- name: Build and publish
35-
id: publish
36-
run: |
37-
pnpm release 0.0.0-${{ github.event.workflow_run.head_commit.id }} --tag ${{ github.event.workflow_run.head_branch }} --registry https://npm.pkg.github.com --publishOnly
38-
env:
39-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
- name: Build
36+
run: pnpm build --withTypes
37+
38+
- name: Upload
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: packages
42+
path: packages/**/dist/*

0 commit comments

Comments
 (0)