diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1385f57..43d41f7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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 @@ -40,7 +40,7 @@ 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' @@ -48,7 +48,7 @@ jobs: run: npm ci - name: Cache dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: | ~/.npm @@ -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 @@ -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 diff --git a/package.json b/package.json index 8609d20..87882b9 100644 --- a/package.json +++ b/package.json @@ -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",