Skip to content

Commit

Permalink
release/v1.1.0 (#9)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
jortfal authored Jun 1, 2024
1 parent fbfa76b commit 234dff3
Show file tree
Hide file tree
Showing 11 changed files with 9,796 additions and 8,823 deletions.
35 changes: 35 additions & 0 deletions .ContainerFile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM debian:bookworm-slim

ARG DEBIAN_FRONTEND=noninteractive
ARG NVM_VERSION=v0.39.7
ARG NODEJS_VERSION=20.14.0

# Update Local Repository Index and Install apt-utils
RUN apt-get update && apt-get -y --no-install-recommends install apt-utils

# Install custom
RUN \
apt-get -y --no-install-recommends install \
sudo \
bash \
procps \
openssl \
gnupg \
lsb-release \
ca-certificates \
apt-transport-https \
software-properties-common \
curl \
wget \
unzip \
python3-pip \
vim \
git

# Install nvm (Node Version Manager)
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/$NVM_VERSION/install.sh | bash
RUN export NVM_DIR="$HOME/.nvm" && \
\. "$NVM_DIR/nvm.sh" && \
\. "$NVM_DIR/bash_completion" && \
# Download and install Node.js
nvm install $NODEJS_VERSION
34 changes: 34 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
{
"name": "Terraform Codespace Semantic Release",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
//"image": "mcr.microsoft.com/devcontainers/image:tag",
"build": {
// Path is relative to the devcontainer.json file.
"dockerfile": "../.ContainerFile"
},

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "pre-commit install",

// Configure tool-specific properties.
"customizations": {
"vscode": {
"extensions": [
"shd101wyy.markdown-preview-enhanced",
"yzhang.markdown-all-in-one",
"DavidAnson.vscode-markdownlint"
]
}
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# default owners for everything in the repository.
* @jortfal
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:

# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
environment: production
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
- name: Setup NPM
uses: bahmutov/npm-install@v1
- name: Release
Expand Down
23 changes: 17 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,29 @@ jobs:
test:
strategy:
matrix:
node-version:
- 10.18.0
- 12
- 14
node-version: # Node.js Releases https://nodejs.org/en/about/previous-releases#nodejs-releases
# - 10.24.1 # LTS Unsupported
# - 11.15.0 # --- Unsupported
# - 12.22.12 # LTS Unsupported
# - 13.14.0 # --- Unsupported
# - 14.21.3 # LTS Unsupported
# - 15.14.0 # --- Unsupported
# - 16.20.2 # LTS Unsupported
# - 17.9.1 # --- Unsupported
# - 18.20.3 # LTS Maintenance
# - 19.9.0 # --- Unsupported
- 20.14.0 # LTS Active
- 21 # Current
- 22 # Current

runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- run: git config --global user.name github-actions
- run: git config --global user.email [email protected]
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Ensure dependencies are compatible with the version of node
Expand Down
12 changes: 6 additions & 6 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# image:
# file: .gitpod.Containerfile
image:
file: .ContainerFile

# List the ports you want to expose and what to do when they are served. See https://www.gitpod.io/docs/config-ports/
# ports:
Expand All @@ -15,11 +15,11 @@ tasks:
command: git config --global user.name "jortfal" &&
git config --global user.email "[email protected]" &&
git config --global commit.gpgsign true &&
git config --global user.signingkey C62738C0CBE3CDCA &&
git config --global user.signingkey 0000000000000000 &&
touch private.gpg &&
echo 'WARNING!!! Do not forget to import the private gpg key ;)' &&
echo 'use "gpg --import private.gpg" to import private key '

vscode:
extensions:
- [email protected]:GR9Y7wA3m2/LsuZxLaCFtg==
"shd101wyy.markdown-preview-enhanced",
"yzhang.markdown-all-in-one",
"DavidAnson.vscode-markdownlint"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
![GitHub release (latest by date)](https://img.shields.io/github/v/release/jortfal/semantic-release-terraform-config)
![GitHub Release Date](https://img.shields.io/github/release-date/jortfal/semantic-release-terraform-config)
![GitHub license](https://img.shields.io/github/license/jortfal/semantic-release-terraform-config)
![Maintenance](https://img.shields.io/maintenance/yes/2021?color=green)
![Maintenance](https://img.shields.io/maintenance/yes/2024?color=green)
![Maintainer](https://img.shields.io/badge/maintainer-jortfal-green)
[![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)

Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ See the License for the specific language governing permissions and
limitations under the License.
*/

module.exports = {
/* eslint import/no-anonymous-default-export: [2, {"allowObject": true}] */
export default {
plugins: [
'@semantic-release/commit-analyzer',
{
Expand Down
Loading

0 comments on commit 234dff3

Please sign in to comment.