Skip to content

Add and configure ESLint and update configuration for Prettier - #26

Merged
marko-zivic-93 merged 5 commits into
actions:mainfrom
akv-platform:update-configs
Mar 8, 2023
Merged

marko-zivic-93 merged 5 commits into
actions:mainfrom
akv-platform:update-configs

Conversation

@IvanZosimov

Copy link
Copy Markdown
Contributor

Description:
In the scope of this PR, we are adding the ESLint tool and updating Prettier:

  • ESLint dependencies were added;
  • Configuration files .eslintrc.js and .eslintignore were added;
  • Prettier dependency was updated;
  • Configuration files .prettiertrc.js and .prettierignore were added, .prettierrc.json was removed;
  • Commands in the package.json file were updated;
  • Repository was formatted and linted according to the added configuration files;
  • Unit-tests were updated;
  • File .gitattributes was updated to force git to replace CRLF eof to LF eof;

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

Comment thread __tests__/version-utils.test.ts Resolved
Comment thread __tests__/version-utils.test.ts Resolved
Comment thread __tests__/version-utils.test.ts Resolved
Comment thread __tests__/version-utils.test.ts Resolved
Comment thread __tests__/version-utils.test.ts Resolved
@marko-zivic-93
marko-zivic-93 merged commit 9169aa7 into actions:main Mar 8, 2023
@CicDiplomacy

Copy link
Copy Markdown

name: Release new action version

on:
release:
types: [released]
workflow_dispatch:
inputs:
TAG_NAME:
description: 'Tag name that the major tag will point to'
required: true

env:
TAG_NAME: ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }}
defaults:
run:
shell: pwsh

jobs:
update_tag:
name: Update the major tag to include the ${{ github.event.inputs.TAG_NAME || github.event.release.tag_name }} changes
# Remember to configure the releaseNewActionVersion environment with required approvers in the repository settings
environment:
name: releaseNewActionVersion
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3

  - name: Update the ${{ env.TAG_NAME }} tag
    id: update-major-tag
    uses: ./
    with:
      source-tag: ${{ env.TAG_NAME }}
      slack-webhook: ${{ secrets.SLACK_WEBHOOK }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants