From 9ecd5edf91cb5ca35c8e1c2477a18e041cd02758 Mon Sep 17 00:00:00 2001 From: dragolea Date: Wed, 26 Jun 2024 18:37:13 +0300 Subject: [PATCH 1/2] chore(config): commit lint type enum now follows cliff categories --- .commitlintrc.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.commitlintrc.ts b/.commitlintrc.ts index 137b006..2213ff6 100644 --- a/.commitlintrc.ts +++ b/.commitlintrc.ts @@ -4,7 +4,11 @@ import { RuleConfigSeverity } from '@commitlint/types'; const Configuration: UserConfig = { extends: ['@commitlint/config-conventional'], rules: { - 'type-enum': [RuleConfigSeverity.Error, 'always', ['feat', 'chore', 'fix', 'test', 'style', 'refactor', 'delete']], + 'type-enum': [ + RuleConfigSeverity.Error, + 'always', + ['feat', 'fix', 'doc', 'perf', 'refactor', 'style', 'test', 'chore', 'revert', 'delete'], + ], 'scope-enum': [ RuleConfigSeverity.Error, 'always', @@ -29,7 +33,6 @@ const Configuration: UserConfig = { 'deps', // e2e-tests, unit, integration: Changes to all tests 'tests', - 'other-functionality', ], ], 'scope-empty': [RuleConfigSeverity.Error, 'never'], From 981f392c416f434f2612d7b7f461369a310bc00a Mon Sep 17 00:00:00 2001 From: dragolea Date: Wed, 26 Jun 2024 18:38:01 +0300 Subject: [PATCH 2/2] chore(build): package will be deployed for testing internally on github npm --- .github/workflows/release.yml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 363eb85..07eb68e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -123,7 +123,7 @@ jobs: # This will push the latest build of the project to npm publish-npm: - name: Publish to npm publicly + name: Publish to npm public needs: create_changelog runs-on: ubuntu-latest steps: @@ -140,3 +140,24 @@ jobs: - run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.npm_token}} + + publish-npm-github: + name: Publish to github npm - internal + needs: create_changelog + env: + NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: '20.x' + - run: npm ci + - run: npm run build + - run: | + echo @dxfrontier:registry=https://npm.pkg.github.com/ > ~/.npmrc + echo "//npm.pkg.github.com/:_authToken=${NPM_TOKEN}" >> ~/.npmrc + - run: npm publish