-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
127 additions
and
4 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,22 @@ | ||
name: Release (beta) | ||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+' | ||
jobs: | ||
publish: | ||
name: NPM Publish (beta) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
- run: npm install --global npm@10 | ||
- run: npm ci | ||
- run: npm test | ||
- uses: JS-DevTools/npm-publish@v3 | ||
with: | ||
token: ${{ secrets.NPM_TOKEN }} | ||
access: 'public' | ||
tag: 'beta' |
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,50 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- 'v[0-9]+.[0-9]+.[0-9]+' | ||
jobs: | ||
release: | ||
name: Github Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: docker://antonyurchenko/git-release:v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
DRAFT_RELEASE: 'false' | ||
PRE_RELEASE: 'false' | ||
CHANGELOG_FILE: 'CHANGELOG.md' | ||
ALLOW_EMPTY_CHANGELOG: 'false' | ||
docs: | ||
name: Documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
- run: npm install --global npm@10 | ||
- run: npm ci | ||
- run: npm run docs | ||
- uses: devops-infra/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
commit_prefix: '[DOCS] ' | ||
commit_message: ${{ github.ref_name }} | ||
target_branch: 'master' | ||
publish: | ||
name: NPM Publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
- run: npm install --global npm@10 | ||
- run: npm ci | ||
- run: npm test | ||
- uses: JS-DevTools/npm-publish@v3 | ||
with: | ||
token: ${{ secrets.NPM_TOKEN }} | ||
access: 'public' |
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,27 @@ | ||
name: Test | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'master' | ||
tags-ignore: | ||
- '**' | ||
|
||
jobs: | ||
Test: | ||
name: Test Node.js ${{ matrix.node }} on ${{ matrix.os }} | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
node: ['20'] | ||
os: [ubuntu-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- run: npm ci | ||
- run: npm test |
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 |
---|---|---|
@@ -1,8 +1,11 @@ | ||
{ | ||
"name": "s3-uploads", | ||
"description": "", | ||
"name": "@oneblink/uploads", | ||
"description": "SDK for uploading various types of files to the OneBlink ecosystem", | ||
"version": "1.0.0", | ||
"author": "OneBlink Developers", | ||
"author": "OneBlink <[email protected]> (https://oneblink.io)", | ||
"bugs": { | ||
"url": "https://github.com/oneblink/uploads/issues" | ||
}, | ||
"devDependencies": { | ||
"@aws-sdk/client-s3": "^3.550.0", | ||
"@aws-sdk/lib-storage": "^3.550.0", | ||
|
@@ -21,8 +24,27 @@ | |
"typedoc": "^0.25.13", | ||
"typescript": "^5.4.4" | ||
}, | ||
"directories": { | ||
"doc": "docs" | ||
}, | ||
"engines": { | ||
"node": ">=20", | ||
"npm": ">=10" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"homepage": "https://github.com/oneblink/uploads", | ||
"license": "ISC", | ||
"main": "index.js", | ||
"main": "dist/index.js", | ||
"module": "dist/index.js", | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/oneblink/uploads.git" | ||
}, | ||
"scripts": { | ||
"build": "tsc", | ||
"docs": "typedoc", | ||
|
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,2 @@ | ||
export * from './index' | ||
export * from '@oneblink/types' |