Skip to content

Commit

Permalink
ci: 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 2fa34a9
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 15 deletions.
52 changes: 42 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,34 @@
name: Node.js CI/CD
name: Force Version CI/CD

on:
push:
branches:
- main

pull_request:
branches: [ main ]

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 +87,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
node-version: 18
- 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 }}
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"name": "@dokuqui/semantic-release-force-version",
"repository": {
"type": "git",
"url": "https://github.com/Dokuqui/Semantic-release_Force-version-plugin.git"
"url": "git+https://github.com/Dokuqui/Semantic-release_Force-version-plugin.git"
},
"version": "1.0.0",
"version": "2.3.1",
"description": "Semantic-release plugin to force your version",
"main": "index.js",
"repositoryUrl": "https://github.com/Dokuqui/Semantic-release_Force-version-plugin",
Expand All @@ -14,7 +14,9 @@
"test-coverage": "jest --coverage"
},
"release": {
"branches": ["main"]
"branches": [
"main"
]
},
"devDependencies": {
"@babel/core": "^7.23.6",
Expand All @@ -24,7 +26,7 @@
"jest": "^29.5.0"
},
"author": "Semenov Illia",
"license": "ISC",
"license": "MIT",
"dependencies": {
"@semantic-release/error": "github:semantic-release/error"
},
Expand All @@ -44,7 +46,7 @@
"publishConfig": {
"access": "public",
"registry": "https://registry.npmjs.org/"
},
},
"contributors": [
"Semenov Illia doku_is@icloud.com"
]
Expand Down

0 comments on commit 2fa34a9

Please sign in to comment.