Skip to content

Commit

Permalink
fix(release): publish correctly to github (#2141)
Browse files Browse the repository at this point in the history
## Describe your changes

- Fix commit to GitHub
Turns out we don't have access to the full repo by default, have to
fetch and checkout the proper branch and setup an author. You can check
the commit it created on this branch
4ab23d2

---------

Co-authored-by: Release Bot <actions@contact@nango.dev>
  • Loading branch information
bodinsamuel and Release Bot committed May 13, 2024
1 parent 088a852 commit ffcd1b3
Show file tree
Hide file tree
Showing 13 changed files with 111 additions and 31 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-images.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "[Release] Build service images"
name: '[Release] Build service images'
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npx zx ./scripts/gitrelease.mjs ${{ inputs.version }} ${{ github.head_ref || github.ref_name }}
npx zx ./scripts/gitrelease.mjs "${{ inputs.version }}" "${{ github.head_ref || github.ref_name }}"
66 changes: 66 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,70 @@

All notable changes to this project will be documented in this file.

## [0.39.25] - 2024-05-10

### Added

- *(integrations)* Add support for dialpad (#2082)
- *(debug)* Add more details when pausing temporal schedule (#2139)
- *(sdk)* Add more caching (#2111)

### Changed

- Better Result types (#2116)
- *(logs)* POST /logs/search (#2063)
- *(metrics)* [NAN-664] track more usage metrics in datadog (#2136)
- Publish missing main package version in lock (#2138)
- *(release)* 0.39.25 [skip ci]
- *(release)* 0.39.25 [skip ci]

### Fixed

- *(release)* Automatic release publishing (#2103)
- *(sdk)* Logging null breaks script (#2140)

### Removed

- Remove heroku/render from self-hosted guides (#2110)
- *(server)* Remove list schedules (#2137)

## [0.39.24] - 2024-05-10

### Added

- *(oauth2cc)* Add authorization request parameters (#2053)
- *(logs)* Add more context data (#2034)
- *(integrations)* Add support for posthog api (#2102)
- *(auth)* Add span and cache 🙈 (#2114)
- *(persist)* Add error details in auth.middleware (#2113)
- *(integrations)* Add support for lessonly api (#2083)
- *(integrations)* Add support for envoy api (#2092)
- *(integration)* Add strava-web-oauth integration (#2118)
- *(integration)* Add Bland.ai (#2098)
- *(integrations)* Add support for pivotaltracker api (#2084)

### Changed

- Script to migrate records (#1934)
- No cap (#2104)
- *(integrations)* Add support for wealthbox (#2109)
- *(deps)* Bump ejs from 3.1.9 to 3.1.10 (#2078)

### Fixed

- *(persist)* Truncate big logs (#2074)
- *(api)* Handle 404 as json (#2085)
- *(db)* Slow query getSyncs (#2088)
- *(api)* Setup for e2e tests (#2090)
- *(Provider)* Proxy is optional (#2096)
- *(docker)* Set correct platform (#2101)
- *(logs)* Make it completely optional (#2100)
- *(api)* Unified context (#2097)
- Latency and type error (#2112)
- Ensure secret_key_hashed is updated when needed (#2119)
- Set secret_key_hashed when creating environment (#2122)
- Show error details from persist in activity logs (#2129)

## [0.39.23] - 2024-05-01

### Added
Expand Down Expand Up @@ -1007,6 +1071,8 @@ All notable changes to this project will be documented in this file.
- Remove Bearer's callback URL (#46)
- Remove project link + version (#149)

[0.39.25]: https://github.com/NangoHQ/nango/compare/v0.39.24..0.39.25
[0.39.24]: https://github.com/NangoHQ/nango/compare/v0.39.23..v0.39.24
[0.39.23]: https://github.com/NangoHQ/nango/compare/v0.39.22..v0.39.23
[0.39.22]: https://github.com/NangoHQ/nango/compare/v0.39.21..v0.39.22
[0.39.21]: https://github.com/NangoHQ/nango/compare/v0.39.20..v0.39.21
Expand Down
30 changes: 15 additions & 15 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nangohq/nango",
"type": "module",
"version": "0.39.23",
"version": "0.39.25",
"workspaces": [
"packages/cli",
"packages/shared",
Expand Down
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.24",
"version": "0.39.25",
"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.24",
"@nangohq/shared": "^0.39.25",
"@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.24",
"version": "0.39.25",
"description": "Nango's frontend library for OAuth handling.",
"type": "module",
"main": "dist/index.js",
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.24",
"version": "0.39.25",
"description": "Nango's Node client.",
"type": "module",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@nangohq/logs": "file:../logs",
"@nangohq/records": "file:../records",
"@nangohq/shared": "file:../shared",
"@nangohq/types": "^0.39.24",
"@nangohq/types": "^0.39.25",
"@nangohq/utils": "file:../utils",
"@workos-inc/node": "^6.2.0",
"axios": "^1.3.4",
Expand Down
6 changes: 3 additions & 3 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.24",
"version": "0.39.25",
"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.24",
"@nangohq/node": "^0.39.25",
"@nangohq/utils": "file:../utils",
"@sentry/node": "^7.106.0",
"@temporalio/client": "^1.9.1",
Expand Down Expand Up @@ -63,7 +63,7 @@
"devDependencies": {
"@nangohq/logs": "file:../logs",
"@nangohq/records": "file:../records",
"@nangohq/types": "^0.39.24",
"@nangohq/types": "^0.39.25",
"@octokit/types": "^9.2.1",
"@types/amqplib": "^0.8.2",
"@types/cors": "^2.8.12",
Expand Down
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nangohq/types",
"version": "0.39.24",
"version": "0.39.25",
"description": "Types used in Nango applications",
"type": "module",
"typings": "dist/index.d.ts",
Expand Down
4 changes: 2 additions & 2 deletions packages/webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
"@heroicons/react": "2.0.18",
"@mantine/core": "6.0.11",
"@mantine/prism": "5.10.5",
"@nangohq/frontend": "^0.39.24",
"@nangohq/frontend": "^0.39.25",
"@nangohq/server": "file:../server",
"@nangohq/types": "^0.39.24",
"@nangohq/types": "^0.39.25",
"@radix-ui/react-icons": "1.3.0",
"@sentry/react": "7.83.0",
"@tailwindcss/forms": "0.5.3",
Expand Down
18 changes: 16 additions & 2 deletions scripts/gitrelease.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,24 @@ if (tagExists.stdout !== '') {
}

const releaseMessage = `chore(release): ${nextVersion} [skip ci]`;

echo`Checkout out branch`;
await $`git fetch origin ${branch}`;
await $`git switch ${branch}`;

echo`Generating changelog`;
await $`npx git-cliff -o CHANGELOG.md -t ${nextVersion}`;

echo`Adding file`;
await $`git add -A package.json package-lock.json packages/**/package.json CHANGELOG.md`;
await $`git commit -am ${releaseMessage} --allow-empty`;
await $`git tag -a ${nextTag} HEAD -m ${releaseMessage}`;

echo`Creating commit`;
await $`git -c user.name="Release Bot" -c user.email="contact@nango.dev" commit --allow-empty --author="Release Bot <actions@contact@nango.dev>" -m ${releaseMessage} `;

echo`Creating tag`;
await $`git -c user.name="Release Bot" -c user.email="contact@nango.dev" tag -a ${nextTag} HEAD -m ${releaseMessage}`;

echo`Pushing`;
await $`git push --follow-tags origin HEAD:refs/heads/${branch}`;
await $`git push --tags`;

Expand Down

0 comments on commit ffcd1b3

Please sign in to comment.