Skip to content

Commit

Permalink
Merge pull request #259 from nimblehq/release/2.2.0
Browse files Browse the repository at this point in the history
Release - 2.2.0
  • Loading branch information
hoangmirs authored Nov 13, 2023
2 parents f969f44 + c6f6f7c commit a21d811
Show file tree
Hide file tree
Showing 12 changed files with 2,185 additions and 1,311 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"root": true,
"extends": ["@nimblehq/eslint-config-nimble-core"]
}
12 changes: 12 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name-template: '$RESOLVED_VERSION'
tag-template: '$RESOLVED_VERSION'
categories:
- title: '⭐ Features'
label: 'type : feature'
- title: '🧹 Chores'
label: 'type : chore'
- title: '🐞 Bugs'
label: 'type : bug'
change-template: '- $TITLE'
template: |
$CHANGES
32 changes: 32 additions & 0 deletions .github/workflows/draft-new-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Draft a new release

on:
push:
branches:
- main

env:
VERSION_FILE: ./package.json

jobs:
draft-new-release:
name: Draft a new release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Get current version
id: current_version
run: |
currentVersion=$(node -p -e "require('${{ env.VERSION_FILE }}').version")
echo "version=$currentVersion" >> $GITHUB_OUTPUT
- name: Draft a new release
uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ github.token }}
with:
version: ${{ steps.current_version.outputs.version }}
2 changes: 0 additions & 2 deletions bin/run
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
process.env.NODE_ENV = 'production';

(async () => {
// Register tsconfig-paths to allow importing without relative paths
await import('tsconfig-paths').then((m) => m.register());
const oclif = await import('@oclif/core');
await oclif.execute({ type: 'cjs', dir: __dirname });
})();
Loading

0 comments on commit a21d811

Please sign in to comment.