Skip to content

[WIP] Adjust to strict ttl #29

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 11 additions & 16 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-empty-function": "off"
}
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended"],
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unsafe-declaration-merging": "off"
}
}
164 changes: 82 additions & 82 deletions .github/workflows/tagged_release.yml
Original file line number Diff line number Diff line change
@@ -1,99 +1,99 @@
name: "Create Tagged Release"
name: 'Create Tagged Release'

on:
workflow_dispatch:
inputs:
release_version:
description: 'Version number of the release'
required: true
workflow_dispatch:
inputs:
release_version:
description: 'Version number of the release'
required: true

jobs:
gh_tagged_release:
name: Create tagged release
runs-on: ubuntu-latest
gh_tagged_release:
name: Create tagged release
runs-on: ubuntu-latest

steps:
- name: Checkout project
uses: actions/checkout@v3
steps:
- name: Checkout project
uses: actions/checkout@v3

- name: Setup Git
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Setup Git
run: |
git config user.name github-actions
git config user.email github-actions@github.com

- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
${{ runner.os }}-
- name: Cache node modules
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}-
${{ runner.os }}-

- name: Setup NodeJs
uses: actions/setup-node@v3
with:
node-version: '17'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Setup NodeJs
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- name: Set versions
run: |
release_version=${{ github.event.inputs.release_version }}
release_branch_name=${release_version%.*}.x
echo "release_branch_name=$release_branch_name" >> $GITHUB_ENV
- name: Set versions
run: |
release_version=${{ github.event.inputs.release_version }}
release_branch_name=${release_version%.*}.x
echo "release_branch_name=$release_branch_name" >> $GITHUB_ENV

- name: Set antora version
run: yq eval -i '.version = "${{ github.event.inputs.release_version }}"' documentation/js-sdk-aml-guide/antora.yml
- name: Set antora version
run: yq eval -i '.version = "${{ github.event.inputs.release_version }}"' documentation/js-sdk-aml-guide/antora.yml

- name: Commit version changes and push to upstream repository
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{ env.release_branch_name }}
commit_user_name: github-actions
commit_user_email: github-actions@github.com
commit_author: Author <actions@github.com>
file_pattern: 'documentation/js-sdk-aml-guide/antora.yml'
- name: Commit version changes and push to upstream repository
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{ env.release_branch_name }}
commit_user_name: github-actions
commit_user_email: github-actions@github.com
commit_author: Author <actions@github.com>
file_pattern: 'documentation/js-sdk-aml-guide/antora.yml'

- name: Install Dependencies
run: npm install
- name: Install Dependencies
run: npm install

- name: Set app version (Unix)
run: npm version ${{ github.event.inputs.release_version }} --no-git-tag-version
- name: Set app version (Unix)
run: npm version ${{ github.event.inputs.release_version }} --no-git-tag-version

- name: Build Project
run: npm run build
- name: Build Project
run: npm run build

# This should be removed as soon as we go towards nodejs package repository
- name: Pack Project as tgz
run: npm pack
# This should be removed as soon as we go towards nodejs package repository
- name: Pack Project as tgz
run: npm pack

- name: "Create Github release (full)"
if: ${{ !contains( github.event.inputs.release_version, '-rc' ) }}
uses: softprops/action-gh-release@v1
id: esmf_sdk_js_aml_release
with:
body: "Release version ${{ github.event.inputs.release_version }}."
tag_name: v${{ github.event.inputs.release_version }}
target_commitish: ${{ env.release_branch_name }}
draft: false
prerelease: false
files: esmf-aspect-model-loader-${{ github.event.inputs.release_version }}.tgz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 'Create Github release (full)'
if: ${{ !contains( github.event.inputs.release_version, '-rc' ) }}
uses: softprops/action-gh-release@v1
id: esmf_sdk_js_aml_release
with:
body: 'Release version ${{ github.event.inputs.release_version }}.'
tag_name: v${{ github.event.inputs.release_version }}
target_commitish: ${{ env.release_branch_name }}
draft: false
prerelease: false
files: esmf-aspect-model-loader-${{ github.event.inputs.release_version }}.tgz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: "Create Github release (milestone)"
if: contains( github.event.inputs.release_version, '-rc' )
uses: softprops/action-gh-release@v1
id: sds_sdk_js_aml_release
with:
body: "Release version ${{ github.event.inputs.release_version }}."
tag_name: v${{ github.event.inputs.release_version }}
target_commitish: ${{ env.release_branch_name }}
draft: false
prerelease: true
files: esmf-aspect-model-loader-${{ github.event.inputs.release_version }}.tgz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: 'Create Github release (milestone)'
if: contains( github.event.inputs.release_version, '-rc' )
uses: softprops/action-gh-release@v1
id: sds_sdk_js_aml_release
with:
body: 'Release version ${{ github.event.inputs.release_version }}.'
tag_name: v${{ github.event.inputs.release_version }}
target_commitish: ${{ env.release_branch_name }}
draft: false
prerelease: true
files: esmf-aspect-model-loader-${{ github.event.inputs.release_version }}.tgz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"cSpell.words": ["Instantiator", "samm"]
}
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@

module.exports = {
presets: [['@babel/preset-env', {targets: {node: 'current'}}], '@babel/preset-typescript'],
plugins: ['transform-decorators-legacy', 'transform-class-properties'],
};
Loading
Loading