Skip to content

Commit

Permalink
chore: update pipeline and docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dokuqui committed Feb 18, 2024
1 parent 352858a commit f0fe90e
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 648 deletions.
53 changes: 44 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,37 @@
name: Node.js CI/CD
name: Force Version CI/CD

on:
push:
branches:
- main

pull_request:
branches: [ main ]

permissions:
packages: write

jobs:
lint:
name: Lint Code Base
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: master
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VALIDATE_JSCPD: false
VALIDATE_TYPESCRIPT_STANDARD: false
VALIDATE_MARKDOWN: false

install:
runs-on: ubuntu-latest

Expand Down Expand Up @@ -64,17 +90,26 @@ jobs:
- name: Run unit tests
run: npm run test-coverage

publish:
release:
name: Release
runs-on: ubuntu-latest
needs: test

if: github.event_name == 'push'
needs:
- lint
- test
steps:
- name: Install Dependencies
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: '20.11.1'

- name: Publish to npm
run: npm publish
- uses: pnpm/action-setup@v2
with:
version: latest
run_install: |
- recursive: false
- run: mkdir -p docs
- run: pnpx semantic-release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ Documentation:

Created by: `Illia Semenov`

Last Updated: [07/02/2024]
Last Updated: [18/02/2024]

© 2024 `Illia Semenov`. All rights reserved.
Loading

0 comments on commit f0fe90e

Please sign in to comment.