Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 11 additions & 12 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
- uses: "actions/setup-node@v6"
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
- uses: "pnpm/action-setup@v6"
with:
cache: true
Expand All @@ -28,11 +29,10 @@ jobs:
# NOTE: the flag is necessary because otherwise `npm version <version>` attempts to
# cut a git tag with that version, which fails because the git user isn't configured.
- run: "npm version ${VERSION} --no-git-tag-version"
- uses: JS-DevTools/npm-publish@v4
with:
token: ${{ secrets.NPM_TOKEN }}
tag: ${{ steps.get_version.outputs.version }}
access: public
- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# NOTE: this publishes an alternate version that doesn't depend on protobuf-ts/runtime
publish-js-client:
name: Publish JS client to NPM
Expand All @@ -42,6 +42,7 @@ jobs:
- uses: "actions/setup-node@v6"
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
- uses: "pnpm/action-setup@v6"
with:
cache: true
Expand All @@ -58,10 +59,8 @@ jobs:
# cut a git tag with that version, which fails because the git user isn't configured.
- run: "npm version ${VERSION} --no-git-tag-version"
working-directory: ./js-dist
- uses: JS-DevTools/npm-publish@v4
with:
token: ${{ secrets.NPM_TOKEN }}
tag: ${{ steps.get_version.outputs.version }}
# Point at the js-dist directory as the working directory
package: js-dist
access: public
- name: Publish JS client to NPM
run: npm publish --access public
working-directory: ./js-dist
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading