Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
cff8403
Delete old setup
alexbrazier Apr 3, 2024
2208e81
Generate API
alexbrazier Apr 3, 2024
d6a2249
Create action to test generated file matches
alexbrazier Apr 4, 2024
f5878c2
Update generated file
alexbrazier Apr 4, 2024
b52b1a4
Merge pull request #1 from squareda/actions
alexbrazier Apr 4, 2024
67972fe
Add release script
alexbrazier Apr 4, 2024
ed3834e
Update package name for publishing
alexbrazier Apr 4, 2024
be8d470
Fix publish access
alexbrazier Apr 4, 2024
fa5b421
Fix test on main
alexbrazier Apr 4, 2024
5498521
Publish correct files
alexbrazier Apr 4, 2024
d90680e
Bump version
alexbrazier Apr 4, 2024
17e2dee
Publish dist folder
alexbrazier Apr 4, 2024
2981134
Brevo updates for PR
alexbrazier Apr 4, 2024
459f702
Fix tsconfig
alexbrazier Apr 12, 2024
31344f6
Merge remote-tracking branch 'brevo/main' into updates
alexbrazier Apr 23, 2024
0d190fc
Update swagger url to new brevo version
alexbrazier Apr 23, 2024
2d30fbb
Fix package name
alexbrazier Apr 23, 2024
f4de8d2
Update to latest swagger definition
alexbrazier Aug 9, 2024
c3f46ca
Update package to correct name and regenerate from swagger
alexbrazier Aug 20, 2024
8be0514
Bump version to 2.1.2
alexbrazier Aug 20, 2024
85f0d86
Revert name changes
alexbrazier Aug 20, 2024
42ee14a
Merge remote-tracking branch 'brevo/main' into updates
alexbrazier Aug 20, 2024
80a8d43
Fix build output for commonjs
alexbrazier Aug 26, 2024
115ecda
Update generated api
alexbrazier Aug 26, 2024
f0502d5
Merge remote-tracking branch 'origin/main' into updates
alexbrazier Mar 11, 2025
a36b3d1
Regenerate
alexbrazier Mar 11, 2025
23a5486
Merge remote-tracking branch 'brevo/main' into updates
alexbrazier Mar 11, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

22 changes: 0 additions & 22 deletions .eslintrc

This file was deleted.

33 changes: 11 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,19 @@
name: Node.js Package
name: Publish Package to npmjs
on:
release:
types: [created]
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
- uses: actions/setup-node@v4
with:
node-version: '14'
registry-url: 'https://registry.npmjs.org'
- run: npm install
# - run: npm publish --access public
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# # Setup .npmrc file to publish to GitHub Packages
# - uses: actions/setup-node@v2
# with:
# registry-url: 'https://npm.pkg.github.com'
# scope: '@getbrevo'
# # Publish to GitHub Packages
# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
scope: "@getbrevo"
- run: yarn install --frozen-lockfile
- run: yarn publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test
on:
pull_request:
branches:
- "*"
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 20.12.0
- name: Install dependencies
run: yarn install
- name: Generate API file
run: yarn generate
- name: Check generated files match
uses: tj-actions/verify-changed-files@v19
with:
files: |
src/Brevo.ts
fail-if-changed: true
fail-message: "Generate API file is different to the committed one. Please run `yarn generate` and commit the changes."
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ wwwroot/*.js
node_modules
typings
dist
.DS_Store
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.github
23 changes: 0 additions & 23 deletions .openapi-generator-ignore

This file was deleted.

Loading