mirror of
				https://github.com/actions/setup-node.git
				synced 2025-11-04 13:29:12 +08:00 
			
		
		
		
	Add and configure ESLint and update configuration for Prettier (#703)
* Add ESLinter and update Prettier * Update eslint config * Update dependencies * Rebuild action * Update package.json * Updates docs * Update docs
This commit is contained in:
		
							
								
								
									
										2
									
								
								.github/ISSUE_TEMPLATE/config.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/ISSUE_TEMPLATE/config.yml
									
									
									
									
										vendored
									
									
								
							@@ -1 +1 @@
 | 
			
		||||
blank_issues_enabled: false
 | 
			
		||||
blank_issues_enabled: false
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								.github/workflows/basic-validation.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/basic-validation.yml
									
									
									
									
										vendored
									
									
								
							@@ -14,4 +14,4 @@ on:
 | 
			
		||||
jobs:
 | 
			
		||||
  call-basic-validation:
 | 
			
		||||
    name: Basic validation
 | 
			
		||||
    uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@main
 | 
			
		||||
    uses: actions/reusable-workflows/.github/workflows/basic-validation.yml@main
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								.github/workflows/check-dist.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/check-dist.yml
									
									
									
									
										vendored
									
									
								
							@@ -14,4 +14,4 @@ on:
 | 
			
		||||
jobs:
 | 
			
		||||
  call-check-dist:
 | 
			
		||||
    name: Check dist/
 | 
			
		||||
    uses: actions/reusable-workflows/.github/workflows/check-dist.yml@main
 | 
			
		||||
    uses: actions/reusable-workflows/.github/workflows/check-dist.yml@main
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										8
									
								
								.github/workflows/codeql-analysis.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.github/workflows/codeql-analysis.yml
									
									
									
									
										vendored
									
									
								
							@@ -2,13 +2,13 @@ name: CodeQL analysis
 | 
			
		||||
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches: [ main ]
 | 
			
		||||
    branches: [main]
 | 
			
		||||
  pull_request:
 | 
			
		||||
    branches: [ main ]
 | 
			
		||||
    branches: [main]
 | 
			
		||||
  schedule:
 | 
			
		||||
    - cron: '0 3 * * 0'
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  call-codeQL-analysis:
 | 
			
		||||
    name: CodeQL analysis 
 | 
			
		||||
    uses: actions/reusable-workflows/.github/workflows/codeql-analysis.yml@main
 | 
			
		||||
    name: CodeQL analysis
 | 
			
		||||
    uses: actions/reusable-workflows/.github/workflows/codeql-analysis.yml@main
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								.github/workflows/release-new-action-version.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								.github/workflows/release-new-action-version.yml
									
									
									
									
										vendored
									
									
								
							@@ -21,8 +21,8 @@ jobs:
 | 
			
		||||
      name: releaseNewActionVersion
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    steps:
 | 
			
		||||
    - name: Update the ${{ env.TAG_NAME }} tag
 | 
			
		||||
      uses: actions/publish-action@v0.2.2
 | 
			
		||||
      with:
 | 
			
		||||
        source-tag: ${{ env.TAG_NAME }}
 | 
			
		||||
        slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
 | 
			
		||||
      - name: Update the ${{ env.TAG_NAME }} tag
 | 
			
		||||
        uses: actions/publish-action@v0.2.2
 | 
			
		||||
        with:
 | 
			
		||||
          source-tag: ${{ env.TAG_NAME }}
 | 
			
		||||
          slack-webhook: ${{ secrets.SLACK_WEBHOOK }}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										12
									
								
								.github/workflows/versions.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										12
									
								
								.github/workflows/versions.yml
									
									
									
									
										vendored
									
									
								
							@@ -57,7 +57,12 @@ jobs:
 | 
			
		||||
      fail-fast: false
 | 
			
		||||
      matrix:
 | 
			
		||||
        os: [ubuntu-latest, windows-latest, macos-latest]
 | 
			
		||||
        node-version: ['20-v8-canary', '20.0.0-v8-canary','20.0.0-v8-canary20221103f7e2421e91']
 | 
			
		||||
        node-version:
 | 
			
		||||
          [
 | 
			
		||||
            '20-v8-canary',
 | 
			
		||||
            '20.0.0-v8-canary',
 | 
			
		||||
            '20.0.0-v8-canary20221103f7e2421e91'
 | 
			
		||||
          ]
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v3
 | 
			
		||||
      - name: Setup Node
 | 
			
		||||
@@ -77,7 +82,8 @@ jobs:
 | 
			
		||||
      fail-fast: false
 | 
			
		||||
      matrix:
 | 
			
		||||
        os: [ubuntu-latest, windows-latest, macos-latest]
 | 
			
		||||
        node-version: [16.0.0-nightly20210420a0261d231c, 17-nightly, 18.0.0-nightly]
 | 
			
		||||
        node-version:
 | 
			
		||||
          [16.0.0-nightly20210420a0261d231c, 17-nightly, 18.0.0-nightly]
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v3
 | 
			
		||||
      - name: Setup Node
 | 
			
		||||
@@ -170,7 +176,7 @@ jobs:
 | 
			
		||||
    strategy:
 | 
			
		||||
      fail-fast: false
 | 
			
		||||
      matrix:
 | 
			
		||||
        os: [ ubuntu-latest, windows-latest, macos-latest ]
 | 
			
		||||
        os: [ubuntu-latest, windows-latest, macos-latest]
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v3
 | 
			
		||||
      - name: Setup node from node version file
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user