Skip to content

Commit

Permalink
Merge pull request #5 from DevoInc/feat/updates
Browse files Browse the repository at this point in the history
feat: maintenance, updates and fixes
  • Loading branch information
tripu authored Apr 16, 2024
2 parents 9fd8e89 + 1c5d40b commit b8b50b2
Show file tree
Hide file tree
Showing 8 changed files with 194 additions and 146 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: ci

permissions:
contents: read
id-token: write

on:
push:
branches: ['main']
pull_request:
branches: ['main']

# Allows to run this workflow manually from the Actions tab
workflow_dispatch:

env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

jobs:

build:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Cache node modules
id: cache-npm
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: |
**/node_modules
~/.npm
key: ${{ runner.os }}-prepare-${{ env.cache-name }}-${{ github.sha }}

- name: Set up Node.js lts/iron
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
registry-url: https://registry.npmjs.org/

- name: Install dependencies
run: npm ci

- name: Test
run: node index.js

lint:
needs: [build]

runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Use node modules cache
id: cache-npm
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: |
**/node_modules
~/.npm
key: ${{ runner.os }}-prepare-${{ env.cache-name }}-${{ github.sha }}

- name: Run ESLint
run: npm run lint
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish --access public
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
node_modules
.idea/
node_modules/
35 changes: 0 additions & 35 deletions .gitlab-ci.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.16.0
lts/iron
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# CHANGELOG

## Version 1.1.0

* Build and publish using Node.js 20 (instead of 18)
* Replace GL CI with GH CI
* Make `node index.js` part of the build
* Add `engines` field (Node.js ≥18, npm ≥7)

## Version 1.0.2

Updated dependencies to fix vulnerabilities
Expand Down
Loading

0 comments on commit b8b50b2

Please sign in to comment.