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

[nan-644] add back in build command #1916

Closed
wants to merge 9 commits into from
22 changes: 11 additions & 11 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
name: "[Release] NPM publish"
name: '[Release] NPM publish'

on:
workflow_dispatch:
inputs:
version:
type: string
description: "Version to publish"
description: 'Version to publish'
required: true
default: "0.0.0"
default: '0.0.0'

jobs:
npm-publish:
if: github.ref == 'refs/heads/master'
#if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to revert

steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }}
token: ${{ secrets.GH_PAT }}
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Publish npm packages
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
shell: bash
run: |
bash ./scripts/publish.sh ${{ inputs.version }}
bash ./scripts/publish.sh ${{ inputs.version }}
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update npm packages version - ${{ inputs.version }}
file_pattern: '*.json'
commit_message: Update npm packages version - ${{ inputs.version }}
file_pattern: '*.json'
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nango",
"version": "0.39.8",
"version": "0.39.11",
"description": "Nango's CLI tool.",
"type": "module",
"main": "dist/index.js",
Expand All @@ -27,7 +27,7 @@
"@babel/traverse": "^7.22.5",
"@babel/types": "^7.22.5",
"@inquirer/prompts": "^2.3.0",
"@nangohq/shared": "^0.39.8",
"@nangohq/shared": "^0.39.11",
"@vercel/ncc": "^0.36.1",
"ajv": "^8.12.0",
"ajv-errors": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/frontend/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nangohq/frontend",
"version": "0.39.8",
"version": "0.39.11",
"description": "Nango's frontend library for OAuth handling.",
"type": "module",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/jobs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"dependencies": {
"@nangohq/nango-runner": "^1.0.0",
"@nangohq/shared": "^0.39.8",
"@nangohq/shared": "^0.39.11",
"@nangohq/utils": "file:../utils",
"@temporalio/activity": "^1.9.1",
"@temporalio/client": "^1.9.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/node-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nangohq/node",
"version": "0.39.8",
"version": "0.39.11",
"description": "Nango's Node client.",
"type": "module",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/persist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
},
"license": "SEE LICENSE IN LICENSE FILE IN GIT REPOSITORY",
"dependencies": {
"@nangohq/shared": "^0.39.11",
"@nangohq/utils": "file:../utils",
"@nangohq/shared": "^0.39.8",
"dd-trace": "5.2.0",
"express": "^4.18.2",
"zod": "^3.22.4",
Expand Down
2 changes: 1 addition & 1 deletion packages/runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"license": "SEE LICENSE IN LICENSE FILE IN GIT REPOSITORY",
"dependencies": {
"@nangohq/shared": "^0.39.8",
"@nangohq/shared": "^0.39.11",
"@nangohq/utils": "file:../utils",
"@trpc/client": "^10.44.0",
"@trpc/server": "^10.44.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"dependencies": {
"@hapi/boom": "^10.0.1",
"@nangohq/shared": "^0.39.8",
"@nangohq/shared": "^0.39.11",
"@nangohq/utils": "file:../utils",
"@workos-inc/node": "^6.2.0",
"axios": "^1.3.4",
Expand Down
4 changes: 2 additions & 2 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nangohq/shared",
"version": "0.39.8",
"version": "0.39.11",
"description": "Nango's shared components.",
"type": "module",
"main": "dist/index.js",
Expand All @@ -20,7 +20,7 @@
"@aws-sdk/client-s3": "3.348.0",
"@datadog/datadog-api-client": "^1.16.0",
"@hapi/boom": "^10.0.1",
"@nangohq/node": "^0.39.8",
"@nangohq/node": "^0.39.11",
"@nangohq/utils": "file:../utils",
"@sentry/node": "^7.105.0",
"@temporalio/client": "^1.9.1",
Expand Down
8 changes: 7 additions & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"type": "module",
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"scripts": {
"build": "rimraf ./dist && tsc"
},
"keywords": [],
"repository": {
"type": "git",
Expand All @@ -15,5 +18,8 @@
"dependencies": {
"winston": "3.8.2"
},
"devDependencies": {}
"devDependencies": {},
"files": [
"dist/**/*"
]
}
2 changes: 1 addition & 1 deletion packages/webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@heroicons/react": "2.0.18",
"@mantine/core": "6.0.11",
"@mantine/prism": "5.10.5",
"@nangohq/frontend": "^0.39.8",
"@nangohq/frontend": "^0.39.11",
"@nangohq/server": "file:../server",
"@radix-ui/react-icons": "1.3.0",
"@sentry/react": "7.83.0",
Expand Down
3 changes: 3 additions & 0 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
fi

npm install
pushd "$GIT_ROOT_DIR/packages/utils"
npm run build
popd

# Node client
bump_and_npm_publish "@nangohq/node" "$VERSION"
Expand Down