diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 04b50ce..8d751ee 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -37,4 +37,22 @@ jobs: run: | npm install npm run lint - npm run format \ No newline at end of file + npm run format + + lint-twitter-langchain: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "18" + cache: "npm" + # Install dependencies in parent directory first + - run: npm install + # Then install and lint in working directory + - name: Install and lint twitter-langchain + working-directory: ./twitter-langchain + run: | + npm install + npm run lint + npm run format diff --git a/.github/workflows/publish_docs.yml b/.github/workflows/publish_docs.yml index e8c031c..f631260 100644 --- a/.github/workflows/publish_docs.yml +++ b/.github/workflows/publish_docs.yml @@ -31,6 +31,12 @@ jobs: mkdir -p docs/cdp-langchain cp -r cdp-langchain/docs/* docs/cdp-langchain/ + # Move twitter-langchain docs + - name: Build Twitter LangChain docs + run: | + mkdir -p docs/twitter-langchain + cp -r twitter-langchain/docs/* docs/twitter-langchain/ + # Deploy to GitHub Pages - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v4 diff --git a/.github/workflows/publish_twitter_langchain.yml b/.github/workflows/publish_twitter_langchain.yml new file mode 100644 index 0000000..b5860d3 --- /dev/null +++ b/.github/workflows/publish_twitter_langchain.yml @@ -0,0 +1,24 @@ +name: Publish Twitter LangChain to NPM + +on: + workflow_dispatch: + +jobs: + deploy-twitter-langchain: + runs-on: ubuntu-latest + permissions: + contents: read + id-token: write + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: "18" + registry-url: "https://registry.npmjs.org" + - run: npm i && npm run build + - name: Install, build and publish Twitter (X) langchain + working-directory: ./twitter-langchain + run: | + npm publish --ignore-scripts --provenance --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}