Release version 3.0.0 #6
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish | |
| on: | |
| push: | |
| tags: | |
| - "[0-9]+.[0-9]+.[0-9]+" | |
| permissions: | |
| packages: write | |
| env: | |
| NODE_VERSION: 24.x | |
| jobs: | |
| publish-npm: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| steps: | |
| - name: Checkout tag "${{ github.ref_name }}" | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.ref_name }} | |
| - name: Use Node.js ${{ env.NODE_VERSION }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| registry-url: "https://registry.npmjs.org" | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| working-directory: eslint-plugin | |
| - name: Copy LICENSE | |
| run: cp LICENSE.md eslint-plugin/ | |
| - name: Publish package on NPM | |
| run: npm publish --provenance --access public | |
| working-directory: eslint-plugin | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| publish-github: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout tag "${{ github.ref_name }}" | |
| uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.ref_name }} | |
| - name: Use Node.js ${{ env.NODE_VERSION }} | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: ${{ env.NODE_VERSION }} | |
| - name: Install dependencies | |
| run: yarn install --immutable | |
| working-directory: eslint-plugin | |
| - name: Copy LICENSE | |
| run: cp LICENSE.md eslint-plugin/ | |
| - name: Add scope to package name | |
| run: npx --yes change-package-name @${{ github.repository_owner }}/creedengo-eslint-plugin | |
| working-directory: eslint-plugin | |
| - name: Configure GitHub Packages registry | |
| uses: bduff9/use-npmrc@dbe8c5121963fc22c8825da5cfb3b58aa18e3d1b # v2.0.0 | |
| with: | |
| working-directory: eslint-plugin | |
| dot-npmrc: | | |
| //npm.pkg.github.com/:_authToken=${NODE_AUTH_TOKEN} | |
| @${{ github.repository_owner }}:registry=https://npm.pkg.github.com | |
| always-auth=true | |
| - name: Publish package on GitHub Packages | |
| run: npm publish | |
| working-directory: eslint-plugin | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |