Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initial commit
Browse files Browse the repository at this point in the history
mario-jerkovic committed Nov 14, 2022
1 parent 0d42456 commit d86465a
Showing 20 changed files with 9,266 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": [
"@rimac-technology/eslint-config/core",
"@rimac-technology/eslint-config/react"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"ignorePatterns": [
"**/types.ts",
"**/*.json"
],
"rules": {}
}
53 changes: 53 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Bug Report
description: Report a problem with `semantic-release-ecr`
labels: [bug]
body:
- type: checkboxes
id: issue-prerequisite
attributes:
label: Issues
options:
- label: "I have checked [existing issues](https://github.com/RimacTechnology/semantic-release-ecr/issues) and there are no issues with the same problem."
required: true

- type: input
attributes:
label: "`semantic-release-ecr` Version You Are Using"
validations:
required: true

- type: textarea
attributes:
label: "Your Config"
description: "Paste the config you are using with `semantic-release-ecr` from semantic release config file"
validations:
required: true

- type: textarea
attributes:
label: "Steps to reproduce"
description: "A detailed step by step explanation on how to reproduce the problem."
validations:
required: true

- type: textarea
attributes:
label: "Expected behavior"
description: "A description of the behavior you expected."
validations:
required: true

- type: textarea
attributes:
label: "Actual behavior"
description: "A description of the actual behavior."
validations:
required: true

- type: checkboxes
id: requirements-check
attributes:
label: Requirements
options:
- label: I have read and followed the instructions above and understand that my issue will be closed if I did not provide the required information.
required: true
17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_requrest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Feature request
description: Request a feature request for `semantic-release-ecr`
labels: [enhancement]
body:
- type: checkboxes
id: issue-prerequisite
attributes:
label: Issues
options:
- label: I have checked [existing issues](https://github.com/RimacTechnology/semantic-release-ecr/issues) and there are no existing ones with the same request.
required: true

- type: textarea
attributes:
label: "Feature description"
validations:
required: true
58 changes: 58 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
on:
push:
branches:
- master
- beta
- alpha
pull_request:
workflow_dispatch:

jobs:
build:
name: Lint and Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/cache@v3
with:
path: |
node_modules
.yarn/cache
key: node_modules-${{ hashFiles('**/yarn.lock') }}
- run: yarn install
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: yarn lint
- run: yarn build
- uses: actions/upload-artifact@v3
with:
name: lib
path: lib/
release:
name: Release
needs: build
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta' || github.ref == 'refs/heads/alpha'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/cache@v3
with:
path: |
node_modules
.yarn/cache
key: node_modules-${{ hashFiles('**/yarn.lock') }}
- uses: actions/download-artifact@v3
with:
name: lib
path: lib/
- run: yarn release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48 changes: 48 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Yarn not using Zero-Installs
.yarn/*
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Dependency directories
node_modules/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# IntelliJ project files
.idea/

# Project
build/
lib/

# MacOS
.DS_Store
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

./node_modules/.bin/commitlint --edit $1
70 changes: 70 additions & 0 deletions .releaserc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
module.exports = {
branches: [
'+([0-9])?(.{+([0-9]),x}).x',
'master',
{
name: 'beta',
prerelease: true,
},
{
name: 'alpha',
prerelease: true,
},
],
plugins: [
[
'@semantic-release/commit-analyzer',
{
preset: 'angular',
releaseRules: [
{
type: 'refactor',
release: 'patch',
},
{
type: 'chore',
release: 'patch',
},
],
},
],
[
'@semantic-release/release-notes-generator',
{
preset: 'conventionalcommits',
presetConfig: {
types: [
{
type: 'feat',
section: 'Features',
},
{
type: 'fix',
section: 'Bug Fixes',
},
{
type: 'refactor',
section: 'Code Refactoring',
},
{
type: 'chore',
section: 'Other',
},
{
type: 'perf',
section: 'Performance Improvements',
},
{
type: 'revert',
section: 'Reverts',
},
],
},
},
],
'@semantic-release/changelog',
'@semantic-release/npm',
'@semantic-release/git',
'@semantic-release/github',
],
}
541 changes: 541 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

801 changes: 801 additions & 0 deletions .yarn/releases/yarn-3.2.4.cjs

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
nodeLinker: node-modules

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: .yarn/releases/yarn-3.2.4.cjs
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# @rimac-technology/semantic-release-s3


[**semantic-release**](https://github.com/semantic-release/semantic-release) plugin to push files and folders to AWS S3 bucket

[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![Conventional Changelog](https://img.shields.io/badge/changelog-conventional-brightgreen.svg)](http://conventional-changelog.github.io)
[![semantic-release: angular](https://img.shields.io/badge/semantic--release-conventionalcommits-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)
71 changes: 71 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"name": "@rimac-technology/semantic-release-s3",
"version": "0.1.0",
"description": "semantic-release plugin to push files and folders to AWS S3 bucket",
"main": "lib/index.js",
"repository": "git@github.com:RimacTechnology/semantic-release-s3.git",
"author": "Rimac Technology d.o.o.",
"license": "MIT",
"scripts": {
"build": "tsc",
"lint": "eslint './src/**/*' --quiet",
"cm": "cz",
"release": "semantic-release",
"postinstall": "husky install",
"prepack": "pinst --disable",
"postpack": "pinst --enable"
},
"publishConfig": {
"access": "public"
},
"files": [
"lib"
],
"keywords": [
"release",
"semantic-release",
"s3"
],
"engines": {
"node": ">=16.14",
"yarn": ">=3"
},
"peerDependencies": {
"semantic-release": ">=19.0.0"
},
"dependencies": {
"aggregate-error": "^3.1.0",
"aws-sdk": "^2.1253.0",
"globby": "^11.0.0"
},
"devDependencies": {
"@commitlint/cli": "^17.2.0",
"@commitlint/config-conventional": "^17.2.0",
"@rimac-technology/eslint-config": "^31.1.4",
"@semantic-release/changelog": "^6.0.1",
"@semantic-release/commit-analyzer": "^9.0.2",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^8.0.6",
"@semantic-release/npm": "^9.0.1",
"@semantic-release/release-notes-generator": "^10.0.3",
"@types/semantic-release": "^17.2.4",
"commitizen": "^4.2.5",
"conventional-changelog-conventionalcommits": "^5.0.0",
"eslint": "^8.22.0",
"husky": "^8.0.2",
"pinst": "^3.0.0",
"semantic-release": "^19.0.5",
"typescript": "^4.8.4"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"packageManager": "yarn@3.2.4"
}
Loading

0 comments on commit d86465a

Please sign in to comment.