Skip to content
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
59 changes: 59 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Publish

on:
pull_request:
branches:
- main
workflow_dispatch:

permissions:
contents: read
id-token: write

jobs:
build:
if: github.event_name == 'pull_request'
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'

- name: Install what prepack builds with
run: npm install

- name: Use npm 11.19.0, since trusted publishing needs 11.5.1 or later
run: npm install --global npm@11.19.0

- name: Build the package
run: npx --yes --registry https://npm.pkg.heyapi.dev/ hey-api@0.1.0-elmo.1 publish --build
env:
npm_config_//npm.pkg.heyapi.dev/:_authToken: ${{ secrets.HEY_API_PKG_TOKEN }}

npm:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest
environment:
name: npm
url: https://www.npmjs.com/package/@elmohq/sdk
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: '24'

- name: Use npm 11.19.0, since trusted publishing needs 11.5.1 or later
run: npm install --global npm@11.19.0

- name: Install what prepack builds with
run: npm install

- name: Publish to npm
run: npx --yes --registry https://npm.pkg.heyapi.dev/ hey-api@0.1.0-elmo.1 publish --destination npm
env:
npm_config_//npm.pkg.heyapi.dev/:_authToken: ${{ secrets.HEY_API_PKG_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.tgz
dist/
node_modules/
1 change: 1 addition & 0 deletions .hey-api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_*
11 changes: 11 additions & 0 deletions .hey-api/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"targets": {
"typescript": {
"package": {
"destination": [
"npm"
]
}
}
}
}
359 changes: 358 additions & 1 deletion .hey-api/generate-lock.json

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions .hey-api/release-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"targets": {
"typescript": {
"commit": "d7f167fd84ae2f3876f10b70ccddf94bfe7da19c",
"contract": "sha256:9cdf2b9073b2512ffaa0329e7724988db96e5c93a657a3e67b41cf908d9ef55e",
"generator": "0.0.24",
"version": "0.1.0"
}
},
"version": 1
}
5 changes: 5 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"printWidth": 100,
"singleQuote": true
}
11 changes: 11 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"categories": {
"correctness": "error"
},
"rules": {
// A call returns a `Promise` subclass that overrides `then`, which the rule reads as an object
// made thenable by accident.
"unicorn/no-thenable": "off"
}
}
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2026 Blue Whale Software, LLC

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading