chore(deps-dev): bump eslint from 8.53.0 to 8.54.0 #11
Workflow file for this run
This file contains 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: CI | |
on: | |
pull_request: | |
branches: [main] | |
push: | |
branches: [main] | |
tags: ['v**'] | |
jobs: | |
test_and_lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
node-version: 18.x | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run lint | |
package: | |
name: Package binaries | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/[email protected] | |
with: | |
node-version: 18.x | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Generate binaries for macOS, Linux and Windows | |
run: npm run package | |
- name: Rename macOS binary to conform to GitHub CLI extension rules | |
run: mv bin/migrate-project-macos bin/gh-migrate-project-darwin-amd64 | |
- name: Rename Windows binary to conform to GitHub CLI extension rules | |
run: mv bin/migrate-project-win.exe bin/gh-migrate-project-windows-amd64.exe | |
- name: Rename Linux binary to conform to GitHub CLI extension rules | |
run: mv bin/migrate-project-linux bin/gh-migrate-project-linux-amd64 | |
- name: Upload macOS binary as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: package-macos | |
path: bin/gh-migrate-project-darwin-amd64 | |
- name: Upload Linux binary as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: package-linux | |
path: bin/gh-migrate-project-linux-amd64 | |
- name: Upload Windows binary as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: package-windows | |
path: bin/gh-migrate-project-windows-amd64.exe | |
create_release: | |
name: Create release | |
if: startsWith(github.ref, 'refs/tags/') | |
runs-on: ubuntu-latest | |
needs: ['package', 'test_and_lint'] | |
permissions: | |
contents: write | |
steps: | |
- name: Download Windows binary | |
uses: actions/download-artifact@v3 | |
with: | |
name: package-windows | |
path: bin | |
- name: Download macOS binary | |
uses: actions/download-artifact@v3 | |
with: | |
name: package-macos | |
path: bin | |
- name: Download Linux binary | |
uses: actions/download-artifact@v3 | |
with: | |
name: package-linux | |
path: bin | |
- name: Create GitHub release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
bin/gh-migrate-project-darwin-amd64 | |
bin/gh-migrate-project-linux-amd64 | |
bin/gh-migrate-project-windows-amd64.exe | |
generate_release_notes: true | |