mirror of
https://github.com/langchain-ai/langgraph.git
synced 2026-08-21 23:22:27 +02:00
723cff9001
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](https://github.com/actions/setup-node/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: '4' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
38 lines
885 B
YAML
38 lines
885 B
YAML
name: JS Release
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
publish:
|
|
# Disallow publishing from branches that aren't `main`.
|
|
if: github.ref == 'refs/heads/main'
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
working-directory:
|
|
- "libs/sdk-js"
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: ${{ matrix.working-directory }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
# JS Build
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: "20"
|
|
cache: "yarn"
|
|
cache-dependency-path: ${{ matrix.working-directory }}/yarn.lock
|
|
|
|
- name: Install dependencies
|
|
run: yarn install
|
|
- name: Build
|
|
run: yarn build
|
|
- name: Publish package to NPM
|
|
run: |
|
|
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
|
|
npm publish |