Skip to content

Commit

Permalink
ci: update versions on pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Dokuqui committed Feb 18, 2024
1 parent f0fe90e commit e9becd4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 21 deletions.
32 changes: 12 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
fetch-depth: 0

- name: Lint Code Base
uses: github/super-linter@v4
uses: github/super-linter@v5
env:
VALIDATE_ALL_CODEBASE: false
DEFAULT_BRANCH: master
Expand All @@ -40,15 +40,15 @@ jobs:
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20.11.1'

- name: Install dependencies
run: npm ci

- name: Cache dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.npm
Expand All @@ -71,12 +71,12 @@ jobs:
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20.11.1'

- name: Restore dependencies cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.npm
Expand All @@ -91,25 +91,17 @@ jobs:
run: npm run test-coverage

release:
name: Release
runs-on: ubuntu-latest
if: github.event_name == 'push'
needs:
needs:
- lint
- test
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Install Node.js
uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: '20.11.1'
- uses: pnpm/action-setup@v2
with:
version: latest
run_install: |
- recursive: false
- run: mkdir -p docs
- run: pnpx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Run Semantic-Release
run: npx semantic-release --debug
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "@dokuqui/semantic-release-force-version",
"repository": {
"type": "git",
"url": "git+https://github.com/Dokuqui/Semantic-release_Force-version-plugin.git"
"url": "https://github.com/Dokuqui/Semantic-release_Force-version-plugin"
},
"version": "2.3.1",
"description": "Semantic-release plugin to force your version",
Expand Down

0 comments on commit e9becd4

Please sign in to comment.