Skip to content
Merged
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
23 changes: 23 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Lint

on: pull_request

jobs:
run-linters:
name: Run linters
runs-on: ubuntu-latest

steps:
- name: Check out Git repository
uses: actions/checkout@v3

- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
check-latest: true

- name: Install Node.js dependencies
run: npm ci

- name: Run eslint
run: npm run lint
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: 'Auto-publish NPM Package'
name: 'Tag and NPM publish'

on:
push:
Expand All @@ -21,7 +21,7 @@ jobs:
node-version: 'lts/*'
check-latest: true

- name: 'Dependencies and tests'
- name: 'Build'
run: |
npm ci
npm run build
Expand All @@ -30,3 +30,17 @@ jobs:
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}

- name: Configure Git
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"

- name: Create tag
run: |
version=$(jq -r '.version' package.json)
tag="v$version"
echo "Creating tag: $tag"

git tag "$tag"
git push origin "$tag"
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## v.0.9.2

### Added

- Adding a github workflow for tagging and linting

## v.0.9.1

### Added
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@mxenabled/connect-widget",
"description": "A simple ui library for React",
"version": "0.9.1",
"version": "0.9.2",
"module": "dist/index.es.js",
"types": "dist/index.d.ts",
"type": "module",
Expand Down