Skip to content

Commit 52b1122

Browse files
committed
ci: publish the package the build produced
1 parent b5ee084 commit 52b1122

1 file changed

Lines changed: 9 additions & 21 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 9 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -98,39 +98,27 @@ jobs:
9898
--no-compact \
9999
--commentWithSha
100100
101+
- run: pnpm pack --out package.tgz
102+
103+
- uses: actions/upload-artifact@v7
104+
with:
105+
name: package-javascript
106+
path: package.tgz
107+
101108
publish:
102109
needs:
103110
- generate
104111
- build
105112
if: github.ref == 'refs/heads/main' && !contains(github.event.head_commit.message, 'no_release')
106113
runs-on: ubuntu-latest
107114
steps:
108-
- uses: actions/checkout@v7
109-
with:
110-
repository: vrchatapi/vrchatapi-javascript
111-
ref: ${{ inputs.ref || github.ref }}
112-
113115
- uses: actions/download-artifact@v8
114116
with:
115-
name: generated-javascript
116-
path: src/generated
117-
118-
- uses: pnpm/setup@v2
119-
with:
120-
runtime: node@24
121-
cache: true
117+
name: package-javascript
122118

123119
- uses: actions/setup-node@v7
124120
with:
125121
node-version: 24
126122
registry-url: https://registry.npmjs.org
127123

128-
# Trusted publishing requires npm CLI version 11.5.1 or later.
129-
# https://docs.npmjs.com/trusted-publishers
130-
- run: npm install -g npm@latest
131-
132-
- run: pnpm version ${{ needs.generate.outputs.version }} --no-git-tag-version
133-
134-
- run: pnpm build
135-
136-
- run: pnpm publish --no-git-checks --tag ${{ needs.generate.outputs.tag }}
124+
- run: npm publish package.tgz --tag ${{ needs.generate.outputs.tag }}

0 commit comments

Comments
 (0)