Skip to content

Commit

Permalink
Merge pull request #129 from ditrit/feature/publishing
Browse files Browse the repository at this point in the history
Feature: publishing
  • Loading branch information
Zorin95670 authored Aug 8, 2024
2 parents e31a07d + cd01873 commit 1a05555
Show file tree
Hide file tree
Showing 47 changed files with 1,695 additions and 9,623 deletions.
6 changes: 0 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,5 @@ module.exports = {
// allow debugger during development only
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'jsdoc/no-undefined-types': 'off',
'no-restricted-imports': ['error', {
patterns: [{
group: ['\\.\\./*', '\\./*'],
message: 'Use \'src/\' for base of import. Don\'t use \'./\' or \'../\'.',
}],
}],
},
};
20 changes: 12 additions & 8 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.14
node-version: 20.16.0
registry-url: 'https://registry.npmjs.org'
- name: Setup npm
run: npm install -g npm@8.19.3
run: npm install -g npm@10.8.1
- uses: actions/cache/restore@v3
with:
path: node_modules
Expand All @@ -62,9 +63,10 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.14
node-version: 20.16.0
registry-url: 'https://registry.npmjs.org'
- name: Setup npm
run: npm install -g npm@8.19.3
run: npm install -g npm@10.8.1
- uses: actions/cache/restore@v3
with:
path: node_modules
Expand All @@ -81,9 +83,10 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.14
node-version: 20.16.0
registry-url: 'https://registry.npmjs.org'
- name: Setup npm
run: npm install -g npm@8.19.3
run: npm install -g npm@10.8.1
- uses: actions/cache/restore@v3
with:
path: node_modules
Expand All @@ -105,9 +108,10 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.14
node-version: 20.16.0
registry-url: 'https://registry.npmjs.org'
- name: Setup npm
run: npm install -g npm@8.19.3
run: npm install -g npm@10.8.1
- uses: actions/cache/restore@v3
with:
path: node_modules
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish to npm

on:
push:
tags:
- '[0-9]+\.[0-9]+\.[0-9]+'

jobs:
publish:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 20.16.0
registry-url: 'https://registry.npmjs.org'

- name: Setup npm
run: npm install -g [email protected]

- name: Install dependencies
run: npm install

- name: Publish to npm
run: npm login && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 3 additions & 2 deletions .github/workflows/stat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,10 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.14
node-version: 20.16.0
registry-url: 'https://registry.npmjs.org'
- name: Setup npm
run: npm install -g npm@8.19.3
run: npm install -g npm@10.8.1
- name: Install dependencies
run: npm ci
- name: Run unit tests
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@

Plugin for managing Terraform files in [Leto-Modelizer](https://github.com/ditrit/leto-modelizer).


## Requirements

* node - [v20.16.0](https://nodejs.org/en/blog/release/v20.16.0)
* npm - [v10.8.1](https://www.npmjs.com/package/npm/v/10.8.1)

## Build your plugin

```
Expand Down
12 changes: 12 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)

## [Unreleased]

### Added

- Add workflow to publish on npm.

### Changed

- Update nodejs to version `20.16.0`.
- Update npm to version `10.8.1`.
- Update plugin-core to version 0.27.2.

## [0.11.0] - 2024/08/02

### Added
Expand Down
Loading

0 comments on commit 1a05555

Please sign in to comment.