Skip to content

Commit

Permalink
ON-39427 # Added CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaxist committed Apr 11, 2024
1 parent 4efa635 commit 74996b3
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.beta.yml
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'
50 changes: 50 additions & 0 deletions .github/workflows/release.yml
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'
27 changes: 27 additions & 0 deletions .github/workflows/test.yml
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
30 changes: 26 additions & 4 deletions package.json
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",
Expand All @@ -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",
Expand Down
2 changes: 2 additions & 0 deletions src/typedoc.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './index'
export * from '@oneblink/types'

0 comments on commit 74996b3

Please sign in to comment.