diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9cf6e52..f214f41 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -45,19 +45,22 @@ jobs: uses: actions/setup-node@v4 with: node-version: lts/* - - name: Install - run: npm install --no-package-lock + - name: Setup PNPM + uses: pnpm/action-setup@v2 + with: + version: latest + run_install: true - name: Test run: npm test - name: Report - run: mkdir -p coverage && npx c8 report --reporter=text-lcov > coverage/lcov.info + run: npx c8 report --reporter=text-lcov > coverage/lcov.info - name: Coverage uses: coverallsapp/github-action@main with: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Release env: - CONVENTIONAL_GITHUB_RELEASER_TOKEN: ${{ secrets.GH_TOKEN }} + GH_TOKEN: ${{ secrets.GH_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} run: | git config --global user.email ${{ secrets.GIT_EMAIL }} diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index e0867f1..f3d7693 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -21,12 +21,15 @@ jobs: uses: actions/setup-node@v4 with: node-version: lts/* - - name: Install - run: npm install --no-package-lock + - name: Setup PNPM + uses: pnpm/action-setup@v2 + with: + version: latest + run_install: true - name: Test run: npm test - name: Report - run: mkdir -p coverage && npx c8 report --reporter=text-lcov > coverage/lcov.info + run: npx c8 report --reporter=text-lcov > coverage/lcov.info - name: Coverage uses: coverallsapp/github-action@main with: diff --git a/package.json b/package.json index a36d01f..97f9536 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "version": "2.1.20", "main": "src/index.js", "bin": { - "microlink": "bin/microlink" + "microlink": "bin/microlink", + "microlink-dev": "bin/microlink-dev", + "microlink-vercel": "bin/microlink-vercel" }, "author": { "email": "hello@microlink.io", @@ -53,9 +55,9 @@ "ava": "latest", "c8": "latest", "ci-publish": "latest", - "conventional-github-releaser": "latest", "finepack": "latest", "git-authors-cli": "latest", + "github-generate-release": "latest", "nano-staged": "latest", "npm-check-updates": "latest", "simple-git-hooks": "latest", @@ -78,7 +80,7 @@ "prerelease": "npm run update:check", "pretest": "npm run lint", "release": "standard-version -a", - "release:github": "conventional-github-releaser -p angular", + "release:github": "github-generate-release", "release:tags": "git push --follow-tags origin HEAD:master", "test": "c8 ava", "update": "ncu -u",