Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: release github action #573

Merged
merged 4 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
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
43 changes: 43 additions & 0 deletions .github/workflows/release_js_sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release JS SDK

on:
push:
# Pattern matched against refs/tags
# This workflow will run when a tag starting with 'js-' is pushed
# For example, 'js-v1.0.0' or 'js-release-2.3.1'
tags:
- 'js-*'


jobs:
run-js-tests:
timeout-minutes: 60
runs-on: ubuntu-latest

defaults:
run:
working-directory: js

steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install -g pnpm@8.15.7
- name: Install packages in js folder
run: pnpm install

- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

- name: pnpm build
run: pnpm build

- name: pnpm publish
run: pnpm publish --no-git-checks

4 changes: 2 additions & 2 deletions js/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "composio-core",
"version": "0.1.12",
"version": "0.1.17-3",
"description": "",
"main": "lib/index.js",
"main": "lib/src/index.js",
"scripts": {
"test": "jest --testMatch=\"**/*.spec.ts\"",
"test:watch": "jest --testMatch=\"**/*.spec.ts\" --watch",
Expand Down
Loading