Skip to content

Commit 279c333

Browse files
update tags and artifact name
1 parent 71acb6f commit 279c333

29 files changed

+1637
-0
lines changed

.chglog/CHANGELOG.tpl.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{{ if .Versions -}}
2+
<a name="unreleased"></a>
3+
## [Unreleased]
4+
{{ if .Unreleased.CommitGroups -}}
5+
{{ range .Unreleased.CommitGroups -}}
6+
### {{ .Title }}
7+
{{ range .Commits -}}
8+
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
9+
{{ end }}
10+
{{ end -}}
11+
{{ else }}
12+
{{ range .Unreleased.Commits -}}
13+
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
14+
{{ end }}
15+
{{ end -}}
16+
{{ end -}}
17+
18+
{{ range .Versions }}
19+
<a name="{{ .Tag.Name }}"></a>
20+
## {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }} - {{ datetime "2006-01-02" .Tag.Date }}
21+
{{ if .CommitGroups -}}
22+
{{ range .CommitGroups -}}
23+
### {{ .Title }}
24+
{{ range .Commits -}}
25+
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
26+
{{ end }}
27+
{{ end -}}
28+
{{ else }}
29+
{{ range .Commits -}}
30+
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
31+
{{ end }}
32+
{{ end -}}
33+
34+
{{- if .NoteGroups -}}
35+
{{ range .NoteGroups -}}
36+
### {{ .Title }}
37+
{{ range .Notes }}
38+
{{ .Body }}
39+
{{ end }}
40+
{{ end -}}
41+
{{ end -}}
42+
{{ end -}}
43+
44+
{{- if .Versions }}
45+
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD
46+
{{ range .Versions -}}
47+
{{ if .Tag.Previous -}}
48+
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
49+
{{ end -}}
50+
{{ end -}}
51+
{{ end -}}

.chglog/config.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
style: github
2+
template: CHANGELOG.tpl.md
3+
info:
4+
title: CHANGELOG
5+
repository_url: https://github.com/ik-serverless/repository-to-change.git
6+
options:
7+
header:
8+
pattern: "^(.*)$"
9+
pattern_maps:
10+
- Subject

.editorconfig

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# top-most EditorConfig file
2+
root = true
3+
4+
[*]
5+
end_of_line = lf
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 4
9+
insert_final_newline = false
10+
trim_trailing_whitespace = true
11+
12+
[*.py]
13+
indent_style = space
14+
indent_size = 4
15+
max_line_length = 140
16+
17+
[*.sh]
18+
indent_style = space
19+
indent_size = 2
20+
21+
[Makefile]
22+
indent_style = tab
23+
24+
[*.{tf,tfvars}]
25+
indent_size = 2
26+
indent_style = space
27+
28+
[*.{yml,yaml}]
29+
indent_style = space
30+
indent_size = 2
31+
32+
[*.feature]
33+
indent_size = 2
34+
35+
[*.{json,tpl}]
36+
indent_style = space
37+
indent_size = 2
38+
39+
[Jenkinsfile]
40+
indent_size = 2
41+
indent_style = space
42+
43+
[*.{xml,config,props,targets,nuspec,resx,ruleset,vsixmanifest,vsct}]
44+
indent_size = 2
45+
46+
[{*.scala,*.sbt}]
47+
indent_size = 2
48+
max_line_length = 80
49+
50+
[{*.hcl,*.conf}]
51+
indent_size = 2
52+
max_line_length = 100
53+
54+
# JS
55+
[*.js, **/*.js]
56+
indent_size = 2
57+
indent_style = space
58+
59+
[{package.json}]
60+
indent_size = 2
61+
indent_style = space
62+
63+
[*.ts]
64+
indent_size = 2
65+
indent_style = space
66+
insert_final_newline = true

.github/CONTRIBUTING.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Contributing to {project name}
2+
3+
# Contributor License Agreement (CLA)
4+
A CLA is a document that specifies how a project is allowed to use your
5+
contribution; they are commonly used in many open source projects.
6+
7+
**_All_ contributions to _all_ projects hosted by [FINOS](https://www.finos.org/)
8+
must be made with a
9+
[Foundation CLA](https://finosfoundation.atlassian.net/wiki/spaces/FINOS/pages/83034172/Contribute)
10+
in place, and there are [additional legal requirements](https://finosfoundation.atlassian.net/wiki/spaces/FINOS/pages/75530375/Legal+Requirements)
11+
that must also be met.**
12+
13+
Commits and pull requests to FINOS repositories such as {project name} will only be accepted from those contributors with an active, executed Individual Contributor License Agreement (ICLA) with FINOS OR who are covered under an existing and active Corporate Contribution License Agreement (CCLA) executed with FINOS. Commits from individuals not covered under an ICLA or CCLA will be flagged and blocked by the FINOS ["CLA Bot" tool](https://github.com/finos/cla-bot). Please note that some CCLAs require individuals/employees to be explicitly named on the CCLA.
14+
15+
As a result, PRs submitted to the {project name} project cannot be accepted until you have a CLA in place with the Foundation.
16+
17+
Need an ICLA? Unsure if you are covered under an existing CCLA? Email [[email protected]](mailto:[email protected]?subject=CLA)
18+
19+
# Contributing Issues
20+
21+
## Prerequisites
22+
23+
* [ ] Have you [searched for duplicates](https://github.com/{program name}/{project name}/issues?utf8=%E2%9C%93&q=)? A simple search for exception error messages or a summary of the unexpected behaviour should suffice.
24+
* [ ] Are you running the latest version?
25+
* [ ] Are you sure this is a bug or missing capability?
26+
27+
## Raising an Issue
28+
* Create your issue [here](https://github.com/{program name}/{project name}/issues/new).
29+
* New issues contain two templates in the description: bug report and enhancement request. Please pick the most appropriate for your issue, **then delete the other**.
30+
* Please also tag the new issue with either "Bug" or "Enhancement".
31+
* Please use [Markdown formatting](https://help.github.com/categories/writing-on-github/)
32+
liberally to assist in readability.
33+
* [Code fences](https://help.github.com/articles/creating-and-highlighting-code-blocks/) for exception stack traces and log entries, for example, massively improve readability.
34+
35+
# Contributing Pull Requests (Code & Docs)
36+
To make review of PRs easier, please:
37+
38+
* Please make sure your PRs will merge cleanly - PRs that don't are unlikely to be accepted.
39+
* For code contributions, follow the existing code layout.
40+
* For documentation contributions, follow the general structure, language, and tone of the [existing docs](https://github.com/{program name}/{project name}/wiki).
41+
* Keep commits small and cohesive - if you have multiple contributions, please submit them as independent commits (and ideally as independent PRs too).
42+
* Reference issue #s if your PR has anything to do with an issue (even if it doesn't address it).
43+
* Minimise non-functional changes (e.g. whitespace).
44+
* Ensure all new files include a header comment block containing the [Apache License v2.0 and your copyright information](http://www.apache.org/licenses/LICENSE-2.0#apply).
45+
* If necessary (e.g. due to 3rd party dependency licensing requirements), update the [NOTICE file](https://github.com/{program name}/{project name}/blob/master/NOTICE) with any new attribution or other notices
46+
47+
48+
## Commit and PR Messages
49+
50+
* **Reference issues, wiki pages, and pull requests liberally!**
51+
* Use the present tense ("Add feature" not "Added feature")
52+
* Use the imperative mood ("Move button left..." not "Moves button left...")
53+
* Limit the first line to 72 characters or less

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: [ivankatliarchuk]
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: https://paypal.me/ivankatliarchuk
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/stale.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
# Number of days of inactivity before an issue becomes stale
3+
daysUntilStale: 90
4+
5+
# Number of days of inactivity before an stale issue is closed
6+
daysUntilClose: 30
7+
8+
# Label to use when marking an issue as stale
9+
staleLabel: stale
10+
11+
issues:
12+
# Comment to post when marking an issue as stale.
13+
markComment: >
14+
This issue has been automatically marked as stale because it has not had
15+
recent activity. It will be closed if no further activity occurs. Thank you
16+
for your contributions.
17+
# Comment to post when closing a stale issue.
18+
closeComment: >
19+
This issue has been automatically closed because it has not had recent
20+
activity since being marked as stale.
21+
pulls:
22+
# Comment to post when marking a PR as stale.
23+
markComment: >
24+
This PR has been automatically marked as stale because it has not had
25+
recent activity. It will be closed if no further activity occurs. Thank you
26+
for your contributions.
27+
To track this PR (even if closed), please open a corresponding issue if one
28+
does not already exist.
29+
# Comment to post when closing a stale PR.
30+
closeComment: >
31+
This PR has been automatically closed because it has not had recent
32+
activity since being marked as stale.
33+
Please reopen when work resumes.

.github/workflows/nodejs.yaml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: NodeJS
2+
# This workflow is triggered on pushes to the repository.
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
node-version: [12.x]
11+
steps:
12+
- uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 5
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v1
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- run: npm install
20+
env:
21+
NODE_ENV: development
22+
- run: npm run dev:install
23+
- run: npm run prod:install
24+
- run: npm run build --if-present
25+
- run: npm run local
26+
env:
27+
DEBUG: INFO
28+
NODE_ENV: production
29+
REGION: eu-west-1
30+
- run: npm run local
31+
env:
32+
DEBUG: DEBUG
33+
NODE_ENV: production
34+
REGION: us-west-1
35+
- name: define version
36+
id: version
37+
run: |
38+
echo "::set-output name=release_timestamp::$(date +%Y%d%m_%H.%m)"
39+
echo "::set-output name=tag_hash::${GITHUB_SHA::8}"
40+
echo "::set-output name=changelog::$(git log -1 --pretty=format:"%s")"
41+
- name: build artifact
42+
id: build-artifact
43+
run: |
44+
rm -fr dist/*
45+
npm run build
46+
npm prune --production
47+
mv node_modules/ dist/
48+
cd dist
49+
zip -qr artifact.zip node_modules .
50+
51+
- name: Bump version and push tag
52+
uses: anothrNick/[email protected]
53+
id: tag
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
56+
WITH_V: true
57+
DEFAULT_BUMP: patch
58+
59+
- name: Create Release
60+
id: create_release
61+
uses: actions/create-release@v1
62+
if: "!contains(github.event.head_commit.message, 'skip')"
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
with:
66+
tag_name: ${{ steps.tag.outputs.tag }}
67+
release_name: Release ${{ steps.version.outputs.release_timestamp}}
68+
draft: false
69+
prerelease: true
70+
body: |
71+
Changes in this Release
72+
-${{ steps.define-version.outputs.changelog }}
73+
- name: Upload Release Asset
74+
id: upload-release-asset
75+
uses: actions/[email protected]
76+
if: "!contains(github.event.head_commit.message, 'skip')"
77+
env:
78+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
79+
with:
80+
upload_url: ${{ steps.create_release.outputs.upload_url }}
81+
asset_path: ./dist/artifact.zip
82+
asset_name: artifact-${{ steps.tag.outputs.tag }}.zip
83+
asset_content_type: application/zip
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"name": "NodeJS",
3+
"description": "Build and test a Node.js project with npm.",
4+
"iconName": "nodejs",
5+
"categories": [
6+
"JavaScript",
7+
"Node",
8+
"Npm",
9+
"AWS"
10+
]
11+
}

0 commit comments

Comments
 (0)