diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cf321a0..0b43941 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,23 +4,22 @@ on: release: types: [published] -permissions: - contents: read - id-token: write - jobs: build: runs-on: ubuntu-22.04 + permissions: + contents: read + id-token: write steps: - uses: actions/checkout@v4 - name: Install pnpm uses: pnpm/action-setup@v4 - - name: Use Node.js ${{ matrix.node-version }} + - name: Use Node.js uses: actions/setup-node@v4 with: - node-version: ${{ matrix.node-version }} - cache: "pnpm" + node-version: "20.x" + registry-url: "https://registry.npmjs.org" - name: Install dependencies run: pnpm install @@ -35,6 +34,6 @@ jobs: run: pnpm test - name: Publish to npm - run: pnpm publish --access public --no-git-checks + run: npm publish --provenance --access public env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 38cbb19..66e3d6f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kougen/eslint-plugin-clean-code", - "version": "1.1.0", + "version": "1.1.5", "description": "Custom eslint rules for clean code.", "main": "dist/index.js", "readme": "README.md",