Skip to content

Commit 234dff3

Browse files
authored
release/v1.1.0 (#9)
* chore: add gitpod config * feat: add package config * chore: add package lock * feat: add shareable configuration * docs: add license * docs: add readme * ci: add test workflow * style: prettier code formatter * ci(test): improve workflow * ci(release): add release workflow * ci(release): change name branch master by main in on trigger * code: add container file * code(gitpod): update gitpod config * ci: add codeowners file * ci: enable dependabot * ci(test): update nodejs versions * code(github codespaces): add dev container configuration * code(container file): add intall nvm and nodejs * code(container file): fix install nvm * code(container file): fix install nodejs * feat: update packages * ci(github actions): update action versions * feat: move commonjs to esm * ci(test): remove test for version 10 to 19 * doc(readme): update shields
1 parent fbfa76b commit 234dff3

File tree

11 files changed

+9796
-8823
lines changed

11 files changed

+9796
-8823
lines changed

.ContainerFile

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
FROM debian:bookworm-slim
2+
3+
ARG DEBIAN_FRONTEND=noninteractive
4+
ARG NVM_VERSION=v0.39.7
5+
ARG NODEJS_VERSION=20.14.0
6+
7+
# Update Local Repository Index and Install apt-utils
8+
RUN apt-get update && apt-get -y --no-install-recommends install apt-utils
9+
10+
# Install custom
11+
RUN \
12+
apt-get -y --no-install-recommends install \
13+
sudo \
14+
bash \
15+
procps \
16+
openssl \
17+
gnupg \
18+
lsb-release \
19+
ca-certificates \
20+
apt-transport-https \
21+
software-properties-common \
22+
curl \
23+
wget \
24+
unzip \
25+
python3-pip \
26+
vim \
27+
git
28+
29+
# Install nvm (Node Version Manager)
30+
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$NVM_VERSION/install.sh | bash
31+
RUN export NVM_DIR="$HOME/.nvm" && \
32+
\. "$NVM_DIR/nvm.sh" && \
33+
\. "$NVM_DIR/bash_completion" && \
34+
# Download and install Node.js
35+
nvm install $NODEJS_VERSION

.devcontainer/devcontainer.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
3+
{
4+
"name": "Terraform Codespace Semantic Release",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
//"image": "mcr.microsoft.com/devcontainers/image:tag",
7+
"build": {
8+
// Path is relative to the devcontainer.json file.
9+
"dockerfile": "../.ContainerFile"
10+
},
11+
12+
// Features to add to the dev container. More info: https://containers.dev/features.
13+
// "features": {},
14+
15+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
16+
// "forwardPorts": [],
17+
18+
// Use 'postCreateCommand' to run commands after the container is created.
19+
// "postCreateCommand": "pre-commit install",
20+
21+
// Configure tool-specific properties.
22+
"customizations": {
23+
"vscode": {
24+
"extensions": [
25+
"shd101wyy.markdown-preview-enhanced",
26+
"yzhang.markdown-all-in-one",
27+
"DavidAnson.vscode-markdownlint"
28+
]
29+
}
30+
}
31+
32+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
33+
// "remoteUser": "root"
34+
}

.github/CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# default owners for everything in the repository.
2+
* @jortfal

.github/dependabot.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: 2
2+
updates:
3+
4+
# Maintain dependencies for GitHub Actions
5+
- package-ecosystem: "github-actions"
6+
directory: "/"
7+
schedule:
8+
interval: "daily"

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ jobs:
1212
environment: production
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v2
15+
uses: actions/checkout@v4
1616
with:
1717
fetch-depth: 0
1818
persist-credentials: false
1919
- name: Setup Node.js
20-
uses: actions/setup-node@v2
20+
uses: actions/setup-node@v4
2121
- name: Setup NPM
2222
uses: bahmutov/npm-install@v1
2323
- name: Release

.github/workflows/test.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,29 @@ jobs:
1717
test:
1818
strategy:
1919
matrix:
20-
node-version:
21-
- 10.18.0
22-
- 12
23-
- 14
20+
node-version: # Node.js Releases https://nodejs.org/en/about/previous-releases#nodejs-releases
21+
# - 10.24.1 # LTS Unsupported
22+
# - 11.15.0 # --- Unsupported
23+
# - 12.22.12 # LTS Unsupported
24+
# - 13.14.0 # --- Unsupported
25+
# - 14.21.3 # LTS Unsupported
26+
# - 15.14.0 # --- Unsupported
27+
# - 16.20.2 # LTS Unsupported
28+
# - 17.9.1 # --- Unsupported
29+
# - 18.20.3 # LTS Maintenance
30+
# - 19.9.0 # --- Unsupported
31+
- 20.14.0 # LTS Active
32+
- 21 # Current
33+
- 22 # Current
34+
2435
runs-on: ubuntu-latest
2536
steps:
2637
- name: Checkout
27-
uses: actions/checkout@v2
38+
uses: actions/checkout@v4
2839
- run: git config --global user.name github-actions
2940
- run: git config --global user.email github-actions@github.com
3041
- name: Use Node.js ${{ matrix.node-version }}
31-
uses: actions/setup-node@v2
42+
uses: actions/setup-node@v4
3243
with:
3344
node-version: ${{ matrix.node-version }}
3445
- name: Ensure dependencies are compatible with the version of node

.gitpod.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# image:
2-
# file: .gitpod.Containerfile
1+
image:
2+
file: .ContainerFile
33

44
# List the ports you want to expose and what to do when they are served. See https://www.gitpod.io/docs/config-ports/
55
# ports:
@@ -15,11 +15,11 @@ tasks:
1515
command: git config --global user.name "jortfal" &&
1616
git config --global user.email "jortfal@users.noreply.github.com" &&
1717
git config --global commit.gpgsign true &&
18-
git config --global user.signingkey C62738C0CBE3CDCA &&
18+
git config --global user.signingkey 0000000000000000 &&
1919
touch private.gpg &&
2020
echo 'WARNING!!! Do not forget to import the private gpg key ;)' &&
2121
echo 'use "gpg --import private.gpg" to import private key '
22-
2322
vscode:
24-
extensions:
25-
- yzhang.markdown-all-in-one@3.4.0:GR9Y7wA3m2/LsuZxLaCFtg==
23+
"shd101wyy.markdown-preview-enhanced",
24+
"yzhang.markdown-all-in-one",
25+
"DavidAnson.vscode-markdownlint"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
![GitHub release (latest by date)](https://img.shields.io/github/v/release/jortfal/semantic-release-terraform-config)
66
![GitHub Release Date](https://img.shields.io/github/release-date/jortfal/semantic-release-terraform-config)
77
![GitHub license](https://img.shields.io/github/license/jortfal/semantic-release-terraform-config)
8-
![Maintenance](https://img.shields.io/maintenance/yes/2021?color=green)
8+
![Maintenance](https://img.shields.io/maintenance/yes/2024?color=green)
99
![Maintainer](https://img.shields.io/badge/maintainer-jortfal-green)
1010
[![Build Status](https://github.com/jortfal/semantic-release-terraform-config/workflows/Test/badge.svg)](https://github.com/jortfal/semantic-release-terraform-config/actions?query=workflow%3ATest+branch%3Amaster) [![npm latest version](https://img.shields.io/npm/v/@jortfal/semantic-release-terraform-config/latest.svg)](https://www.npmjs.com/package/jortfal/semantic-release-terraform-config)
1111

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ See the License for the specific language governing permissions and
1111
limitations under the License.
1212
*/
1313

14-
module.exports = {
14+
/* eslint import/no-anonymous-default-export: [2, {"allowObject": true}] */
15+
export default {
1516
plugins: [
1617
'@semantic-release/commit-analyzer',
1718
{

0 commit comments

Comments
 (0)