-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add github action to publish packages and backend apps
- Loading branch information
Showing
14 changed files
with
188 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
name: Nango Release | ||
on: [push, pull_request] | ||
concurrency: | ||
group: pulls/${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
npm-publish: | ||
if: github.ref == 'refs/heads/master' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Publish npm packages | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
shell: bash | ||
run: | | ||
bash ./scripts/publish.sh | ||
#TODO: commit changes to repo | ||
nango-jobs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: docker/setup-buildx-action@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18.x' | ||
- uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: Build and push container for nango-jobs | ||
run: | | ||
npm run i && npm run ts-build | ||
docker buildx build -f packages/jobs/Dockerfile --platform linux/amd64 -t nangohq/jobs:$(git rev-parse --short HEAD) . --no-cache --output type=registry | ||
# nango-runner: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: docker/setup-buildx-action@v3 | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: '18.x' | ||
# - name: Build and push container for nango-runner | ||
# run: | | ||
# npm run ts-build | ||
# docker buildx build -f packages/runner/Dockerfile --platform linux/amd64 -t nangohq/runner:$(git rev-parse --short HEAD) . --no-cache --output type=registry | ||
# nango-server-prod: | ||
# if: github.ref == 'refs/heads/master' | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: docker/setup-buildx-action@v3 | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: '18.x' | ||
# - name: Build and push container for nango-server (prod) | ||
# run: | | ||
# npm run build:prod | ||
# docker buildx build -f packages/server/Dockerfile --platform linux/amd64 -t nangohq/nango-cloud:$(git rev-parse --short HEAD) -t nangohq/nango-cloud:production . --no-cache --output type=registry | ||
# nango-server-staging: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: docker/setup-buildx-action@v3 | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: '18.x' | ||
# - name: Build and push container for nango-server (staging) | ||
# run: | | ||
# npm run build:staging | ||
# # TODO: use nango-cloud image repo for staging also | ||
# docker buildx build -f packages/server/Dockerfile --platform linux/amd64 -t nangohq/nango-cloud-staging:$(git rev-parse --short HEAD) . --no-cache --output type=registry | ||
# nango-server-self-hosted: | ||
# if: github.ref == 'refs/heads/master' | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: docker/setup-buildx-action@v3 | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: '18.x' | ||
# - name: Build and push containers for nango-server (self-hosted) | ||
# run: | | ||
# npm run build:enterprise && docker buildx build --platform linux/amd64 -f packages/server/Dockerfile -t nangohq/nango-server:enterprise -t nangohq/nango-server:enterprise-$(git rev-parse --short HEAD) . --no-cache --output type=registry | ||
# npm run build:hosted && docker buildx build --platform linux/amd64 -f packages/server/Dockerfile -t nangohq/nango-server:hosted -t nangohq/nango-server:$(git rev-parse --short HEAD) . --no-cache --output type=registry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
0.36.74 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
}, | ||
"references": [{ "path": "../shared" }], | ||
"include": ["lib/**/*"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ | |
"outDir": "dist" | ||
}, | ||
"include": ["lib/**/*"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.